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

Unified Diff: test/mjsunit/wasm/asm-wasm.js

Issue 2555203002: [wasm][asm.js] Utf8 encode exported function names. (Closed)
Patch Set: Created 4 years 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/asmjs/asm-wasm-builder.cc ('K') | « src/asmjs/asm-wasm-builder.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/asm-wasm.js
diff --git a/test/mjsunit/wasm/asm-wasm.js b/test/mjsunit/wasm/asm-wasm.js
index 3d302c5f7a043acc9eaccfa267e71f0eed08d945..dac8cbe4975bca8a812cfa7ac0139de2c0347bfe 100644
--- a/test/mjsunit/wasm/asm-wasm.js
+++ b/test/mjsunit/wasm/asm-wasm.js
@@ -1497,6 +1497,21 @@ assertWasm(-34359738370.75, TestNegativeDouble);
})();
+(function TestUnicodeExportKey() {
+ function Module() {
+ "use asm";
+ function func() {
+ return 42;
+ }
+ return {"\u00d1\u00e6": func};
+ }
+
+ var m = Module(stdlib);
+ assertEquals(42, m.Ñæ());
+ assertValidAsm(Module);
+})();
+
+
function TestAndIntAndHeapValue(stdlib, foreign, buffer) {
"use asm";
var HEAP32 = new stdlib.Int32Array(buffer);
« src/asmjs/asm-wasm-builder.cc ('K') | « src/asmjs/asm-wasm-builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698