зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1493096 - Add a test for the WebAssembly.Memory() constructor with initial > maximum; r=bbouvier
This commit is contained in:
Родитель
207d9a7b66
Коммит
44a389168f
|
@ -659843,7 +659843,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"wasm/jsapi/memory/constructor.any.js": [
|
||||
"7d29c40f69923944854f698e9b269c5f0b774f37",
|
||||
"a584a23ecf0a582b21b913a780accee38e277927",
|
||||
"testharness"
|
||||
],
|
||||
"wasm/jsapi/memory/grow.any.js": [
|
||||
|
|
|
@ -79,6 +79,10 @@ for (const value of outOfRangeValues) {
|
|||
}, `Out-of-range maximum value in descriptor: ${format_value(value)}`);
|
||||
}
|
||||
|
||||
test(() => {
|
||||
assert_throws(new RangeError(), () => new WebAssembly.Memory({ "element": "anyfunc", "initial": 10, "maximum": 9 }));
|
||||
}, "Initial value exceeds maximum");
|
||||
|
||||
test(() => {
|
||||
const proxy = new Proxy({}, {
|
||||
has(o, x) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче