Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

View File

@ -0,0 +1,44 @@
// Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
let badCaseRan = false;
function main(i) {
class B {
m() {
return super.nodeType; // The access site (megamorphic)
}
}
let node = new d8.dom.Div(); // API object
node['a' + i] = 1; // Create a new shape
if (i < 0x100 - 1) {
B.prototype.__proto__ = {};
} else {
B.prototype.__proto__ = node; // Lookup start object == API object
}
let b = new B();
b.x0 = 1;
b.x1 = 2;
b.x2 = 3;
b.x3 = 4;
node.nodeType; // Create a handler for loading from the API object
let caught = false;
try {
b.m();
} catch {
caught = true;
}
if (i < 0x100 - 1) {
assertFalse(caught);
} else {
assertTrue(caught);
badCaseRan = true;
}
}
for (let i = 0; i < 0x100; i++) {
main(i);
}
assertTrue(badCaseRan);