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

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

Issue 2208703002: [wasm] Allow import function to be any kind of callables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Create a native context at the beginning of all tests in test-run-wasm-js.cc 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
« src/compiler/wasm-compiler.cc ('K') | « test/cctest/wasm/test-run-wasm-js.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/ffi.js
diff --git a/test/mjsunit/wasm/ffi.js b/test/mjsunit/wasm/ffi.js
index 9db8ea6f5585425d728101351c66f741d4f5df57..e96210e1d949881587c951d24c43794ab20bb11c 100644
--- a/test/mjsunit/wasm/ffi.js
+++ b/test/mjsunit/wasm/ffi.js
@@ -54,6 +54,9 @@ function check_FOREIGN_SUB(r, a, b) {
testCallFFI(FOREIGN_SUB, check_FOREIGN_SUB);
+var proxy_sub = new Proxy(FOREIGN_SUB, {
+});
+testCallFFI(proxy_sub, check_FOREIGN_SUB);
Benedikt Meurer 2016/08/03 17:14:43 I'd like to see appropriate tests for all the spec
function FOREIGN_ABCD(a, b, c, d) {
print("FOREIGN_ABCD(" + a + ", " + b + ", " + c + ", " + d + ")");
« src/compiler/wasm-compiler.cc ('K') | « test/cctest/wasm/test-run-wasm-js.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698