From 3dc8c3bed4cf3a77607edbb0b015e33f8b60fc09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 6 Jun 2017 10:28:14 +0200 Subject: deps: update V8 to 5.9.211.32 PR-URL: https://github.com/nodejs/node/pull/13263 Reviewed-By: Gibson Fahnestock Reviewed-By: Ben Noordhuis Reviewed-By: Franziska Hinkelmann Reviewed-By: Myles Borins --- deps/v8/test/mjsunit/wasm/errors.js | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'deps/v8/test/mjsunit/wasm/errors.js') 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: {}}); @@ -99,9 +111,6 @@ function assertConversionError(bytes, imports) { b.addImport("foo", "bar", kSig_v_v); assertLinkError(b.toBuffer(), {foo: {bar: 9}}); - b = builder(); - b.addImportedGlobal("foo", "bar", kWasmI32); - assertLinkError(b.toBuffer(), {}); b = builder(); b.addImportedGlobal("foo", "bar", kWasmI32); assertLinkError(b.toBuffer(), {foo: {}}); @@ -112,9 +121,6 @@ function assertConversionError(bytes, imports) { b.addImportedGlobal("foo", "bar", kWasmI32); assertLinkError(b.toBuffer(), {foo: {bar: () => 9}}); - b = builder(); - b.addImportedMemory("foo", "bar"); - assertLinkError(b.toBuffer(), {}); b = builder(); b.addImportedMemory("foo", "bar"); assertLinkError(b.toBuffer(), {foo: {}}); -- cgit v1.2.1