Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(953)

Unified Diff: test/mjsunit/wasm/calls.js

Issue 2254803002: [wasm] Throw a type error if an I64 is exported to JS. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove IfSuccess nodes for now. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-wasm.cc ('k') | test/mjsunit/wasm/ffi-error.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/calls.js
diff --git a/test/mjsunit/wasm/calls.js b/test/mjsunit/wasm/calls.js
index 94e97e6995b203c8fe2e91d9feaba595f1b1feba..4da0501cf2fdedd4af7d54348855aca50dd871a5 100644
--- a/test/mjsunit/wasm/calls.js
+++ b/test/mjsunit/wasm/calls.js
@@ -40,28 +40,6 @@ function assertFunction(module, func) {
return exp;
}
-(function I64SubTest() {
-
- var builder = new WasmModuleBuilder();
-
- builder.addMemory(1, 1, true);
- builder.addFunction("sub", kSig_l_ll)
- .addBody([ // --
- kExprGetLocal, 0, // --
- kExprGetLocal, 1, // --
- kExprI64Sub]) // --
- .exportFunc()
-
- var module = builder.instantiate();
- assertModule(module, kPageSize);
-
- // Check the properties of the sub function.
- var sub = assertFunction(module, "sub");
- assertEquals(-55, sub(33, 88));
- assertEquals(-55555, sub(33333, 88888));
- assertEquals(-5555555, sub(3333333, 8888888));
-})();
-
(function SubTest() {
var builder = new WasmModuleBuilder();
« no previous file with comments | « src/runtime/runtime-wasm.cc ('k') | test/mjsunit/wasm/ffi-error.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698