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

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

Issue 2650053005: [wasm-test] WasmModuleBuilder.addCustomSection in the JS builder API. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | test/mjsunit/wasm/wasm-module-builder.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/js-api.js
diff --git a/test/mjsunit/wasm/js-api.js b/test/mjsunit/wasm/js-api.js
index 3c195dc130a3cad7cbd98d91ac4246ced3817ac7..873f4ddff67e309de7cb4ffe19c8ef71413db69e 100644
--- a/test/mjsunit/wasm/js-api.js
+++ b/test/mjsunit/wasm/js-api.js
@@ -292,19 +292,10 @@ assertErrorMessage(
let customSectionModuleBinary2 = (() => {
let builder = new WasmModuleBuilder();
- builder.addExplicitSection([kUnknownSectionCode, 3, 1, 'x'.charCodeAt(0), 2]);
- builder.addExplicitSection([
- kUnknownSectionCode, 6, 3, 'f'.charCodeAt(0), 'o'.charCodeAt(0),
- 'o'.charCodeAt(0), 66, 77
- ]);
- builder.addExplicitSection([
- kUnknownSectionCode, 7, 3, 'f'.charCodeAt(0), 'o'.charCodeAt(0),
- 'o'.charCodeAt(0), 91, 92, 93
- ]);
- builder.addExplicitSection([
- kUnknownSectionCode, 7, 3, 'f'.charCodeAt(0), 'o'.charCodeAt(0),
- 'x'.charCodeAt(0), 99, 99, 99
- ]);
+ builder.addCustomSection('x', [2]);
+ builder.addCustomSection('foo', [66, 77]);
+ builder.addCustomSection('foo', [91, 92, 93]);
+ builder.addCustomSection('fox', [99, 99, 99]);
return new Int8Array(builder.toBuffer());
})();
var arr = moduleCustomSections(new Module(customSectionModuleBinary2), 'x');
« no previous file with comments | « no previous file | test/mjsunit/wasm/wasm-module-builder.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698