diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-06-06 10:28:14 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-06-07 10:33:31 +0200 |
commit | 3dc8c3bed4cf3a77607edbb0b015e33f8b60fc09 (patch) | |
tree | 9dee56e142638b34f1eccbd0ad88c3bce5377c29 /deps/v8/test/mjsunit/wasm/errors.js | |
parent | 91a1bbe3055a660194ca4d403795aa0c03e9d056 (diff) | |
download | node-new-3dc8c3bed4cf3a77607edbb0b015e33f8b60fc09.tar.gz |
deps: update V8 to 5.9.211.32
PR-URL: https://github.com/nodejs/node/pull/13263
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/errors.js')
-rw-r--r-- | deps/v8/test/mjsunit/wasm/errors.js | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/deps/v8/test/mjsunit/wasm/errors.js b/deps/v8/test/mjsunit/wasm/errors.js index b87702fa83..5910bc3449 100644 --- a/deps/v8/test/mjsunit/wasm/errors.js +++ b/deps/v8/test/mjsunit/wasm/errors.js @@ -86,12 +86,24 @@ function assertConversionError(bytes, imports) { assertCompileError(builder().addStart(0).toBuffer()); })(); -(function TestLinkingError() { +(function TestTypeError() { let b; - b = builder(); b.addImport("foo", "bar", kSig_v_v); - assertLinkError(b.toBuffer(), {}); + assertTypeError(b.toBuffer(), {}); + + b = builder(); + b.addImportedGlobal("foo", "bar", kWasmI32); + assertTypeError(b.toBuffer(), {}); + + b = builder(); + b.addImportedMemory("foo", "bar"); + assertTypeError(b.toBuffer(), {}); +})(); + +(function TestLinkingError() { + let b; + b = builder(); b.addImport("foo", "bar", kSig_v_v); assertLinkError(b.toBuffer(), {foo: {}}); @@ -101,9 +113,6 @@ function assertConversionError(bytes, imports) { b = builder(); b.addImportedGlobal("foo", "bar", kWasmI32); - assertLinkError(b.toBuffer(), {}); - b = builder(); - b.addImportedGlobal("foo", "bar", kWasmI32); assertLinkError(b.toBuffer(), {foo: {}}); b = builder(); b.addImportedGlobal("foo", "bar", kWasmI32); @@ -114,9 +123,6 @@ function assertConversionError(bytes, imports) { b = builder(); b.addImportedMemory("foo", "bar"); - assertLinkError(b.toBuffer(), {}); - b = builder(); - b.addImportedMemory("foo", "bar"); assertLinkError(b.toBuffer(), {foo: {}}); b = builder(); b.addImportedMemory("foo", "bar", 1); |