Files
Kmake/deps/v8/test/mjsunit/regress/wasm/regress-712569.js
2026-05-26 23:36:42 -07:00

24 lines
576 B
JavaScript

// Copyright 2017 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.
// Flags: --ignore-unhandled-promises
var v11 = {};
Object.defineProperty(v11.__proto__, 0, {
get: function() {
},
set: function() {
try {
WebAssembly.instantiate().then(
() => assertUnreachable(),
() => { /* ignore */ });
v11[0] = 0;
} catch (e) {
assertTrue(e instanceof RangeError);
}
}
});
v66 = new Array();
cv = v66; cv[0] = 0.1; cv[2] = 0.2;