Title: [207846] trunk/JSTests
Revision
207846
Author
[email protected]
Date
2016-10-25 14:48:19 -0700 (Tue, 25 Oct 2016)

Log Message

WebAssembly JS API: simple Module test
https://bugs.webkit.org/show_bug.cgi?id=163963

Reviewed by Filip Pizlo.

* wasm/LowLevelBinary.js:
(export.default.LowLevelBinary.prototype.get return): get the ArrayBuffer
(export.default.LowLevelBinary.prototype.hexdump): Deleted.
(export.default.LowLevelBinary.prototype._maybeGrow): Deleted.
* wasm/js-api/test_Module.js: Added.
(EmptyModule): The most basic module possible

Modified Paths

Added Paths

Diff

Modified: trunk/JSTests/ChangeLog (207845 => 207846)


--- trunk/JSTests/ChangeLog	2016-10-25 21:42:57 UTC (rev 207845)
+++ trunk/JSTests/ChangeLog	2016-10-25 21:48:19 UTC (rev 207846)
@@ -1,5 +1,19 @@
 2016-10-25  JF Bastien  <[email protected]>
 
+        WebAssembly JS API: simple Module test
+        https://bugs.webkit.org/show_bug.cgi?id=163963
+
+        Reviewed by Filip Pizlo.
+
+        * wasm/LowLevelBinary.js:
+        (export.default.LowLevelBinary.prototype.get return): get the ArrayBuffer
+        (export.default.LowLevelBinary.prototype.hexdump): Deleted.
+        (export.default.LowLevelBinary.prototype._maybeGrow): Deleted.
+        * wasm/js-api/test_Module.js: Added.
+        (EmptyModule): The most basic module possible
+
+2016-10-25  JF Bastien  <[email protected]>
+
         WebAssembly JS API: implement Module
 
         This implementation allows us to:

Modified: trunk/JSTests/wasm/LowLevelBinary.js (207845 => 207846)


--- trunk/JSTests/wasm/LowLevelBinary.js	2016-10-25 21:42:57 UTC (rev 207845)
+++ trunk/JSTests/wasm/LowLevelBinary.js	2016-10-25 21:48:19 UTC (rev 207846)
@@ -72,6 +72,7 @@
     newPatchable(type) { return new PatchableLowLevelBinary(type, this); }
 
     // Utilities.
+    get() { return this._buf; }
     hexdump() { return _hexdump(this._buf, this._used); }
     _maybeGrow(bytes) {
         const allocated = this._buf.length;

Added: trunk/JSTests/wasm/js-api/test_Module.js (0 => 207846)


--- trunk/JSTests/wasm/js-api/test_Module.js	                        (rev 0)
+++ trunk/JSTests/wasm/js-api/test_Module.js	2016-10-25 21:48:19 UTC (rev 207846)
@@ -0,0 +1,9 @@
+import * as assert from '../assert.js';
+import Builder from '../Builder.js';
+
+(function EmptyModule() {
+    const builder = new Builder();
+    const bin = builder.WebAssembly().get();
+    const module = new WebAssembly.Module(bin);
+    assert.instanceof(module, WebAssembly.Module);
+})();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to