Changeset 269866 in webkit


Ignore:
Timestamp:
Nov 16, 2020 11:46:50 AM (3 years ago)
Author:
ysuzuki@apple.com
Message:

Import latest wpt/wasm tests
https://bugs.webkit.org/show_bug.cgi?id=218953

Reviewed by Saam Barati.

LayoutTests/imported/w3c:

This patch just imports and rebaselines wpt/wasm tests.

  • resources/import-expectations.json:
  • web-platform-tests/wasm/META.yml: Added.
  • web-platform-tests/wasm/compile_worker.js: Added.

(onmessage):

  • web-platform-tests/wasm/create_multiple_memory.worker-expected.txt: Added.
  • web-platform-tests/wasm/create_multiple_memory.worker.html: Added.
  • web-platform-tests/wasm/create_multiple_memory.worker.js: Added.

(test):

  • web-platform-tests/wasm/incrementer.wasm: Added.
  • web-platform-tests/wasm/jsapi/bad-imports.js:

(test_bad_imports.value_type):
(test_bad_imports):

  • web-platform-tests/wasm/jsapi/constructor/instantiate-bad-imports.any-expected.txt:
  • web-platform-tests/wasm/jsapi/constructor/instantiate-bad-imports.any.worker-expected.txt:
  • web-platform-tests/wasm/jsapi/constructor/instantiate.any-expected.txt:
  • web-platform-tests/wasm/jsapi/constructor/instantiate.any.worker-expected.txt:
  • web-platform-tests/wasm/jsapi/constructor/toStringTag.any-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/constructor/toStringTag.any.html: Added.
  • web-platform-tests/wasm/jsapi/constructor/toStringTag.any.js: Added.

(test):
(test.t.t.add_cleanup):

  • web-platform-tests/wasm/jsapi/constructor/toStringTag.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/constructor/toStringTag.any.worker.html: Added.
  • web-platform-tests/wasm/jsapi/constructor/w3c-import.log:
  • web-platform-tests/wasm/jsapi/functions/entry-different-function-realm-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/functions/entry-different-function-realm.html: Added.
  • web-platform-tests/wasm/jsapi/functions/entry-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/functions/entry.html: Added.
  • web-platform-tests/wasm/jsapi/functions/helper.js: Added.

(call_later):

  • web-platform-tests/wasm/jsapi/functions/incumbent-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/functions/incumbent.html: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/README.md: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/current/current.html: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/current/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/jsapi/functions/resources/current/resources/window-to-open.html: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/current/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/jsapi/functions/resources/entry-incumbent.html: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/function/function.html: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/function/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/jsapi/functions/resources/function/resources/window-to-open.html: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/function/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/jsapi/functions/resources/incumbent-incumbent.html: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/relevant/relevant.html: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/relevant/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/jsapi/functions/resources/relevant/resources/window-to-open.html: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/relevant/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/jsapi/functions/resources/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/jsapi/functions/resources/resources/window-to-open.html: Added.
  • web-platform-tests/wasm/jsapi/functions/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/jsapi/functions/resources/window-to-open.html: Added.
  • web-platform-tests/wasm/jsapi/functions/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/jsapi/global/constructor.any-expected.txt:
  • web-platform-tests/wasm/jsapi/global/constructor.any.js:

(test):
(string_appeared_here.toString):
(string_appeared_here.valueOf):
(string_appeared_here.test):
(toString):
(valueOf):
(name.format_value):
(const.invalidBigint.of.invalidBigints.test):

  • web-platform-tests/wasm/jsapi/global/constructor.any.worker-expected.txt:
  • web-platform-tests/wasm/jsapi/global/value-get-set.any-expected.txt:
  • web-platform-tests/wasm/jsapi/global/value-get-set.any.js:

(string_appeared_here.name.of.immutableOptions.test):
(string_appeared_here.name.of.mutableOptions.test):
(test):

  • web-platform-tests/wasm/jsapi/global/value-get-set.any.worker-expected.txt:
  • web-platform-tests/wasm/jsapi/idlharness.any-expected.txt:
  • web-platform-tests/wasm/jsapi/idlharness.any.js:

(async idl_array):
(promise_test.async const): Deleted.
(promise_test): Deleted.

  • web-platform-tests/wasm/jsapi/idlharness.any.worker-expected.txt:
  • web-platform-tests/wasm/jsapi/instance/constructor-bad-imports.any-expected.txt:
  • web-platform-tests/wasm/jsapi/instance/constructor-bad-imports.any.worker-expected.txt:
  • web-platform-tests/wasm/jsapi/instance/constructor.any-expected.txt:
  • web-platform-tests/wasm/jsapi/instance/constructor.any.worker-expected.txt:
  • web-platform-tests/wasm/jsapi/instanceTestFactory.js:

(const.imports.string_appeared_here.string_appeared_here):

  • web-platform-tests/wasm/jsapi/memory/assertions.js: Added.

(assert_ArrayBuffer):

  • web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any.html: Added.
  • web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any.js: Added.

(test):
(test.t.new.WebAssembly.Memory.get maximum):
(test.t.new.WebAssembly.Memory.get initial):
(test.t.new.WebAssembly.Memory.get shared):

  • web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any.worker.html: Added.
  • web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any.html: Added.
  • web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any.js: Added.

(test):

  • web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any.worker.html: Added.
  • web-platform-tests/wasm/jsapi/memory/constructor.any-expected.txt:
  • web-platform-tests/wasm/jsapi/memory/constructor.any.js:

(test.get assert_array_equals):
(test):
(assert_Memory): Deleted.
(test.t.get assert_array_equals): Deleted.

  • web-platform-tests/wasm/jsapi/memory/constructor.any.worker-expected.txt:
  • web-platform-tests/wasm/jsapi/memory/grow.any.js:

(assert_ArrayBuffer): Deleted.

  • web-platform-tests/wasm/jsapi/memory/w3c-import.log:
  • web-platform-tests/wasm/jsapi/prototypes.any-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/prototypes.any.html: Added.
  • web-platform-tests/wasm/jsapi/prototypes.any.js: Added.

(setup):
(test):

  • web-platform-tests/wasm/jsapi/prototypes.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/prototypes.any.worker.html: Added.
  • web-platform-tests/wasm/jsapi/table/assertions.js:
  • web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any.html: Added.
  • web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any.js: Added.

(test):

  • web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any.worker.html: Added.
  • web-platform-tests/wasm/jsapi/table/constructor.any.js:

(assert_Table): Deleted.

  • web-platform-tests/wasm/jsapi/table/w3c-import.log:
  • web-platform-tests/wasm/jsapi/w3c-import.log:
  • web-platform-tests/wasm/jsapi/wasm-module-builder.js:

(WasmModuleBuilder.prototype.addTable):
(WasmModuleBuilder.prototype.toBuffer):
(wasmF32Const):
(wasmF64Const):

  • web-platform-tests/wasm/resources/load_wasm.js: Added.

(createWasmModule):

  • web-platform-tests/wasm/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/serialization/arraybuffer/transfer.window-expected.txt: Added.
  • web-platform-tests/wasm/serialization/arraybuffer/transfer.window.html: Added.
  • web-platform-tests/wasm/serialization/arraybuffer/transfer.window.js: Added.

(test):

  • web-platform-tests/wasm/serialization/arraybuffer/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/serialization/module/broadcastchannel-success-and-failure-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/broadcastchannel-success-and-failure.html: Added.
  • web-platform-tests/wasm/serialization/module/broadcastchannel-success-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/broadcastchannel-success.html: Added.
  • web-platform-tests/wasm/serialization/module/identity-not-preserved-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/identity-not-preserved.html: Added.
  • web-platform-tests/wasm/serialization/module/incrementer.wasm: Added.
  • web-platform-tests/wasm/serialization/module/nested-worker-success.any.js: Added.
  • web-platform-tests/wasm/serialization/module/nested-worker-success.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/nested-worker-success.any.worker.html: Added.
  • web-platform-tests/wasm/serialization/module/no-transferring-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/no-transferring.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/blank.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/broadcastchannel-iframe.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/broadcastchannel-sharedworker.js: Added.

(channel.onmessageerror):

  • web-platform-tests/wasm/serialization/module/resources/broadcastchannel-worker.js: Added.

(channel.onmessage):

  • web-platform-tests/wasm/serialization/module/resources/create-empty-wasm-module.js: Added.

(createEmptyWasmModule):

  • web-platform-tests/wasm/serialization/module/resources/echo-iframe.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/echo-worker.js: Added.

(self.onmessage):

  • web-platform-tests/wasm/serialization/module/resources/incrementer-iframe-domain.sub.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/incrementer-iframe.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/incrementer-popup.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/incrementer-worker-with-channel.js: Added.

(self.onmessage):

  • web-platform-tests/wasm/serialization/module/resources/incrementer-worker.js: Added.
  • web-platform-tests/wasm/serialization/module/resources/incrementer.wasm: Added.
  • web-platform-tests/wasm/serialization/module/resources/nested-iframe-1.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/nested-iframe-2.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/nested-iframe-3.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/nested-iframe-4-incrementer.html: Added.
  • web-platform-tests/wasm/serialization/module/resources/serviceworker-failure.js: Added.

(self.onmessage.e.else):

  • web-platform-tests/wasm/serialization/module/resources/sharedworker-failure.js: Added.
  • web-platform-tests/wasm/serialization/module/resources/test-incrementer.js: Added.

(createWasmModule):
(testModule):
(self.testSharingViaIncrementerScript):
(self.setupDestinationIncrementer):

  • web-platform-tests/wasm/serialization/module/resources/w3c-import.log: Added.
  • web-platform-tests/wasm/serialization/module/serialization-via-history-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/serialization-via-history.html: Added.
  • web-platform-tests/wasm/serialization/module/serialization-via-idb.any-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/serialization-via-idb.any.html: Added.
  • web-platform-tests/wasm/serialization/module/serialization-via-idb.any.js: Added.

(createEmptyWasmModule):
(async_test.t.openReq.onupgradeneeded.e.store.put.property.get x):
(async_test.t.openReq.onupgradeneeded.e.store.put.createEmptyWasmModule.get x):
(async_test.t.openReq.onupgradeneeded.e.store.put.createEmptyWasmModule):

  • web-platform-tests/wasm/serialization/module/serialization-via-idb.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/serialization-via-idb.any.worker.html: Added.
  • web-platform-tests/wasm/serialization/module/serialization-via-notifications-api.any-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/serialization-via-notifications-api.any.html: Added.
  • web-platform-tests/wasm/serialization/module/serialization-via-notifications-api.any.js: Added.

(createEmptyWasmModule):
(test):

  • web-platform-tests/wasm/serialization/module/serialization-via-notifications-api.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/serialization-via-notifications-api.any.worker.html: Added.
  • web-platform-tests/wasm/serialization/module/w3c-import.log: Added.
  • web-platform-tests/wasm/serialization/module/window-domain-success.sub-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/window-domain-success.sub.html: Added.
  • web-platform-tests/wasm/serialization/module/window-messagechannel-success-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/window-messagechannel-success.html: Added.
  • web-platform-tests/wasm/serialization/module/window-serviceworker-failure.https-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/window-serviceworker-failure.https.html: Added.
  • web-platform-tests/wasm/serialization/module/window-sharedworker-failure-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/window-sharedworker-failure.html: Added.
  • web-platform-tests/wasm/serialization/module/window-similar-but-cross-origin-success.sub-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/window-similar-but-cross-origin-success.sub.html: Added.
  • web-platform-tests/wasm/serialization/module/window-simple-success-expected.txt: Added.
  • web-platform-tests/wasm/serialization/module/window-simple-success.html: Added.
  • web-platform-tests/wasm/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
  • web-platform-tests/wasm/webapi/abort.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/abort.any.html: Added.
  • web-platform-tests/wasm/webapi/abort.any.js: Added.

(const.method.of.methods.promise_test.async t):
(const.method.of.methods.return.promise_rejects_dom):

  • web-platform-tests/wasm/webapi/abort.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/abort.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/body.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/body.any.html: Added.
  • web-platform-tests/wasm/webapi/body.any.js: Added.

(string_appeared_here.WebAssembly.method):
(string_appeared_here.return.promise_rejects_js):

  • web-platform-tests/wasm/webapi/body.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/body.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/contenttype.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/contenttype.any.html: Added.
  • web-platform-tests/wasm/webapi/contenttype.any.js: Added.

(const.contenttype.of.validContentTypes.promise_test.async t):

  • web-platform-tests/wasm/webapi/contenttype.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/contenttype.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/empty-body.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/empty-body.any.html: Added.
  • web-platform-tests/wasm/webapi/empty-body.any.js: Added.

(string_appeared_here.name.of.invalidArguments.WebAssembly.method):

  • web-platform-tests/wasm/webapi/empty-body.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/empty-body.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/historical.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/historical.any.html: Added.
  • web-platform-tests/wasm/webapi/historical.any.js: Added.

(promise_test.async t.):
(promise_test.async t):

  • web-platform-tests/wasm/webapi/historical.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/historical.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/idlharness.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/idlharness.any.html: Added.
  • web-platform-tests/wasm/webapi/idlharness.any.js: Added.
  • web-platform-tests/wasm/webapi/idlharness.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/idlharness.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any.html: Added.
  • web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any.js: Added.

(test_bad_imports):

  • web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/instantiateStreaming.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/instantiateStreaming.any.html: Added.
  • web-platform-tests/wasm/webapi/instantiateStreaming.any.js: Added.

(setup):
(fn.of.instanceTestFactory.promise_test.async const):
(fn.of.instanceTestFactory.promise_test):
(promise_test.async const):
(promise_test.const.imports.get module.return.get global):
(promise_test.const.imports.get module):
(promise_test):

  • web-platform-tests/wasm/webapi/instantiateStreaming.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/instantiateStreaming.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/invalid-args.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/invalid-args.any.html: Added.
  • web-platform-tests/wasm/webapi/invalid-args.any.js: Added.

(string_appeared_here.name.format_value):

  • web-platform-tests/wasm/webapi/invalid-args.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/invalid-args.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/invalid-code.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/invalid-code.any.html: Added.
  • web-platform-tests/wasm/webapi/invalid-code.any.js: Added.

(setup):

  • web-platform-tests/wasm/webapi/invalid-code.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/invalid-code.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/origin.sub.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/origin.sub.any.html: Added.
  • web-platform-tests/wasm/webapi/origin.sub.any.js: Added.
  • web-platform-tests/wasm/webapi/origin.sub.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/origin.sub.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/rejected-arg.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/rejected-arg.any.html: Added.
  • web-platform-tests/wasm/webapi/rejected-arg.any.js: Added.

(string_appeared_here.WebAssembly.method):

  • web-platform-tests/wasm/webapi/rejected-arg.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/rejected-arg.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/status.any-expected.txt: Added.
  • web-platform-tests/wasm/webapi/status.any.html: Added.
  • web-platform-tests/wasm/webapi/status.any.js: Added.
  • web-platform-tests/wasm/webapi/status.any.worker-expected.txt: Added.
  • web-platform-tests/wasm/webapi/status.any.worker.html: Added.
  • web-platform-tests/wasm/webapi/status.py: Added.

(main):

  • web-platform-tests/wasm/webapi/w3c-import.log: Added.

LayoutTests:

Location:
trunk/LayoutTests
Files:
193 added
35 edited
12 copied

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r269854 r269866  
     12020-11-16  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        Import latest wpt/wasm tests
     4        https://bugs.webkit.org/show_bug.cgi?id=218953
     5
     6        Reviewed by Saam Barati.
     7
     8        * TestExpectations:
     9        * platform/mac-wk1/TestExpectations:
     10
    1112020-11-16  Sam Weinig  <weinig@apple.com>
    212
  • trunk/LayoutTests/TestExpectations

    r269810 r269866  
    380380imported/w3c/web-platform-tests/streams/writable-streams/write.any.html [ DumpJSConsoleLogInStdErr ]
    381381imported/w3c/web-platform-tests/streams/writable-streams/error.any.html [ DumpJSConsoleLogInStdErr ]
     382imported/w3c/web-platform-tests/wasm/webapi/rejected-arg.any.html [ DumpJSConsoleLogInStdErr ]
    382383imported/w3c/web-platform-tests/workers/WorkerGlobalScope_ErrorEvent_lineno.htm [ DumpJSConsoleLogInStdErr ]
    383384imported/w3c/web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum.html [ DumpJSConsoleLogInStdErr ]
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r269853 r269866  
     12020-11-16  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        Import latest wpt/wasm tests
     4        https://bugs.webkit.org/show_bug.cgi?id=218953
     5
     6        Reviewed by Saam Barati.
     7
     8        This patch just imports and rebaselines wpt/wasm tests.
     9
     10        * resources/import-expectations.json:
     11        * web-platform-tests/wasm/META.yml: Added.
     12        * web-platform-tests/wasm/compile_worker.js: Added.
     13        (onmessage):
     14        * web-platform-tests/wasm/create_multiple_memory.worker-expected.txt: Added.
     15        * web-platform-tests/wasm/create_multiple_memory.worker.html: Added.
     16        * web-platform-tests/wasm/create_multiple_memory.worker.js: Added.
     17        (test):
     18        * web-platform-tests/wasm/incrementer.wasm: Added.
     19        * web-platform-tests/wasm/jsapi/bad-imports.js:
     20        (test_bad_imports.value_type):
     21        (test_bad_imports):
     22        * web-platform-tests/wasm/jsapi/constructor/instantiate-bad-imports.any-expected.txt:
     23        * web-platform-tests/wasm/jsapi/constructor/instantiate-bad-imports.any.worker-expected.txt:
     24        * web-platform-tests/wasm/jsapi/constructor/instantiate.any-expected.txt:
     25        * web-platform-tests/wasm/jsapi/constructor/instantiate.any.worker-expected.txt:
     26        * web-platform-tests/wasm/jsapi/constructor/toStringTag.any-expected.txt: Added.
     27        * web-platform-tests/wasm/jsapi/constructor/toStringTag.any.html: Added.
     28        * web-platform-tests/wasm/jsapi/constructor/toStringTag.any.js: Added.
     29        (test):
     30        (test.t.t.add_cleanup):
     31        * web-platform-tests/wasm/jsapi/constructor/toStringTag.any.worker-expected.txt: Added.
     32        * web-platform-tests/wasm/jsapi/constructor/toStringTag.any.worker.html: Added.
     33        * web-platform-tests/wasm/jsapi/constructor/w3c-import.log:
     34        * web-platform-tests/wasm/jsapi/functions/entry-different-function-realm-expected.txt: Added.
     35        * web-platform-tests/wasm/jsapi/functions/entry-different-function-realm.html: Added.
     36        * web-platform-tests/wasm/jsapi/functions/entry-expected.txt: Added.
     37        * web-platform-tests/wasm/jsapi/functions/entry.html: Added.
     38        * web-platform-tests/wasm/jsapi/functions/helper.js: Added.
     39        (call_later):
     40        * web-platform-tests/wasm/jsapi/functions/incumbent-expected.txt: Added.
     41        * web-platform-tests/wasm/jsapi/functions/incumbent.html: Added.
     42        * web-platform-tests/wasm/jsapi/functions/resources/README.md: Added.
     43        * web-platform-tests/wasm/jsapi/functions/resources/current/current.html: Added.
     44        * web-platform-tests/wasm/jsapi/functions/resources/current/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     45        * web-platform-tests/wasm/jsapi/functions/resources/current/resources/window-to-open.html: Added.
     46        * web-platform-tests/wasm/jsapi/functions/resources/current/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     47        * web-platform-tests/wasm/jsapi/functions/resources/entry-incumbent.html: Added.
     48        * web-platform-tests/wasm/jsapi/functions/resources/function/function.html: Added.
     49        * web-platform-tests/wasm/jsapi/functions/resources/function/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     50        * web-platform-tests/wasm/jsapi/functions/resources/function/resources/window-to-open.html: Added.
     51        * web-platform-tests/wasm/jsapi/functions/resources/function/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     52        * web-platform-tests/wasm/jsapi/functions/resources/incumbent-incumbent.html: Added.
     53        * web-platform-tests/wasm/jsapi/functions/resources/relevant/relevant.html: Added.
     54        * web-platform-tests/wasm/jsapi/functions/resources/relevant/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     55        * web-platform-tests/wasm/jsapi/functions/resources/relevant/resources/window-to-open.html: Added.
     56        * web-platform-tests/wasm/jsapi/functions/resources/relevant/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     57        * web-platform-tests/wasm/jsapi/functions/resources/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     58        * web-platform-tests/wasm/jsapi/functions/resources/resources/window-to-open.html: Added.
     59        * web-platform-tests/wasm/jsapi/functions/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     60        * web-platform-tests/wasm/jsapi/functions/resources/window-to-open.html: Added.
     61        * web-platform-tests/wasm/jsapi/functions/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     62        * web-platform-tests/wasm/jsapi/global/constructor.any-expected.txt:
     63        * web-platform-tests/wasm/jsapi/global/constructor.any.js:
     64        (test):
     65        (string_appeared_here.toString):
     66        (string_appeared_here.valueOf):
     67        (string_appeared_here.test):
     68        (toString):
     69        (valueOf):
     70        (name.format_value):
     71        (const.invalidBigint.of.invalidBigints.test):
     72        * web-platform-tests/wasm/jsapi/global/constructor.any.worker-expected.txt:
     73        * web-platform-tests/wasm/jsapi/global/value-get-set.any-expected.txt:
     74        * web-platform-tests/wasm/jsapi/global/value-get-set.any.js:
     75        (string_appeared_here.name.of.immutableOptions.test):
     76        (string_appeared_here.name.of.mutableOptions.test):
     77        (test):
     78        * web-platform-tests/wasm/jsapi/global/value-get-set.any.worker-expected.txt:
     79        * web-platform-tests/wasm/jsapi/idlharness.any-expected.txt:
     80        * web-platform-tests/wasm/jsapi/idlharness.any.js:
     81        (async idl_array):
     82        (promise_test.async const): Deleted.
     83        (promise_test): Deleted.
     84        * web-platform-tests/wasm/jsapi/idlharness.any.worker-expected.txt:
     85        * web-platform-tests/wasm/jsapi/instance/constructor-bad-imports.any-expected.txt:
     86        * web-platform-tests/wasm/jsapi/instance/constructor-bad-imports.any.worker-expected.txt:
     87        * web-platform-tests/wasm/jsapi/instance/constructor.any-expected.txt:
     88        * web-platform-tests/wasm/jsapi/instance/constructor.any.worker-expected.txt:
     89        * web-platform-tests/wasm/jsapi/instanceTestFactory.js:
     90        (const.imports.string_appeared_here.string_appeared_here):
     91        * web-platform-tests/wasm/jsapi/memory/assertions.js: Added.
     92        (assert_ArrayBuffer):
     93        * web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any-expected.txt: Added.
     94        * web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any.html: Added.
     95        * web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any.js: Added.
     96        (test):
     97        (test.t.new.WebAssembly.Memory.get maximum):
     98        (test.t.new.WebAssembly.Memory.get initial):
     99        (test.t.new.WebAssembly.Memory.get shared):
     100        * web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any.worker-expected.txt: Added.
     101        * web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any.worker.html: Added.
     102        * web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any-expected.txt: Added.
     103        * web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any.html: Added.
     104        * web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any.js: Added.
     105        (test):
     106        * web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any.worker-expected.txt: Added.
     107        * web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any.worker.html: Added.
     108        * web-platform-tests/wasm/jsapi/memory/constructor.any-expected.txt:
     109        * web-platform-tests/wasm/jsapi/memory/constructor.any.js:
     110        (test.get assert_array_equals):
     111        (test):
     112        (assert_Memory): Deleted.
     113        (test.t.get assert_array_equals): Deleted.
     114        * web-platform-tests/wasm/jsapi/memory/constructor.any.worker-expected.txt:
     115        * web-platform-tests/wasm/jsapi/memory/grow.any.js:
     116        (assert_ArrayBuffer): Deleted.
     117        * web-platform-tests/wasm/jsapi/memory/w3c-import.log:
     118        * web-platform-tests/wasm/jsapi/prototypes.any-expected.txt: Added.
     119        * web-platform-tests/wasm/jsapi/prototypes.any.html: Added.
     120        * web-platform-tests/wasm/jsapi/prototypes.any.js: Added.
     121        (setup):
     122        (test):
     123        * web-platform-tests/wasm/jsapi/prototypes.any.worker-expected.txt: Added.
     124        * web-platform-tests/wasm/jsapi/prototypes.any.worker.html: Added.
     125        * web-platform-tests/wasm/jsapi/table/assertions.js:
     126        * web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any-expected.txt: Added.
     127        * web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any.html: Added.
     128        * web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any.js: Added.
     129        (test):
     130        * web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any.worker-expected.txt: Added.
     131        * web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any.worker.html: Added.
     132        * web-platform-tests/wasm/jsapi/table/constructor.any.js:
     133        (assert_Table): Deleted.
     134        * web-platform-tests/wasm/jsapi/table/w3c-import.log:
     135        * web-platform-tests/wasm/jsapi/w3c-import.log:
     136        * web-platform-tests/wasm/jsapi/wasm-module-builder.js:
     137        (WasmModuleBuilder.prototype.addTable):
     138        (WasmModuleBuilder.prototype.toBuffer):
     139        (wasmF32Const):
     140        (wasmF64Const):
     141        * web-platform-tests/wasm/resources/load_wasm.js: Added.
     142        (createWasmModule):
     143        * web-platform-tests/wasm/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     144        * web-platform-tests/wasm/serialization/arraybuffer/transfer.window-expected.txt: Added.
     145        * web-platform-tests/wasm/serialization/arraybuffer/transfer.window.html: Added.
     146        * web-platform-tests/wasm/serialization/arraybuffer/transfer.window.js: Added.
     147        (test):
     148        * web-platform-tests/wasm/serialization/arraybuffer/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     149        * web-platform-tests/wasm/serialization/module/broadcastchannel-success-and-failure-expected.txt: Added.
     150        * web-platform-tests/wasm/serialization/module/broadcastchannel-success-and-failure.html: Added.
     151        * web-platform-tests/wasm/serialization/module/broadcastchannel-success-expected.txt: Added.
     152        * web-platform-tests/wasm/serialization/module/broadcastchannel-success.html: Added.
     153        * web-platform-tests/wasm/serialization/module/identity-not-preserved-expected.txt: Added.
     154        * web-platform-tests/wasm/serialization/module/identity-not-preserved.html: Added.
     155        * web-platform-tests/wasm/serialization/module/incrementer.wasm: Added.
     156        * web-platform-tests/wasm/serialization/module/nested-worker-success.any.js: Added.
     157        * web-platform-tests/wasm/serialization/module/nested-worker-success.any.worker-expected.txt: Added.
     158        * web-platform-tests/wasm/serialization/module/nested-worker-success.any.worker.html: Added.
     159        * web-platform-tests/wasm/serialization/module/no-transferring-expected.txt: Added.
     160        * web-platform-tests/wasm/serialization/module/no-transferring.html: Added.
     161        * web-platform-tests/wasm/serialization/module/resources/blank.html: Added.
     162        * web-platform-tests/wasm/serialization/module/resources/broadcastchannel-iframe.html: Added.
     163        * web-platform-tests/wasm/serialization/module/resources/broadcastchannel-sharedworker.js: Added.
     164        (channel.onmessageerror):
     165        * web-platform-tests/wasm/serialization/module/resources/broadcastchannel-worker.js: Added.
     166        (channel.onmessage):
     167        * web-platform-tests/wasm/serialization/module/resources/create-empty-wasm-module.js: Added.
     168        (createEmptyWasmModule):
     169        * web-platform-tests/wasm/serialization/module/resources/echo-iframe.html: Added.
     170        * web-platform-tests/wasm/serialization/module/resources/echo-worker.js: Added.
     171        (self.onmessage):
     172        * web-platform-tests/wasm/serialization/module/resources/incrementer-iframe-domain.sub.html: Added.
     173        * web-platform-tests/wasm/serialization/module/resources/incrementer-iframe.html: Added.
     174        * web-platform-tests/wasm/serialization/module/resources/incrementer-popup.html: Added.
     175        * web-platform-tests/wasm/serialization/module/resources/incrementer-worker-with-channel.js: Added.
     176        (self.onmessage):
     177        * web-platform-tests/wasm/serialization/module/resources/incrementer-worker.js: Added.
     178        * web-platform-tests/wasm/serialization/module/resources/incrementer.wasm: Added.
     179        * web-platform-tests/wasm/serialization/module/resources/nested-iframe-1.html: Added.
     180        * web-platform-tests/wasm/serialization/module/resources/nested-iframe-2.html: Added.
     181        * web-platform-tests/wasm/serialization/module/resources/nested-iframe-3.html: Added.
     182        * web-platform-tests/wasm/serialization/module/resources/nested-iframe-4-incrementer.html: Added.
     183        * web-platform-tests/wasm/serialization/module/resources/serviceworker-failure.js: Added.
     184        (self.onmessage.e.else):
     185        * web-platform-tests/wasm/serialization/module/resources/sharedworker-failure.js: Added.
     186        * web-platform-tests/wasm/serialization/module/resources/test-incrementer.js: Added.
     187        (createWasmModule):
     188        (testModule):
     189        (self.testSharingViaIncrementerScript):
     190        (self.setupDestinationIncrementer):
     191        * web-platform-tests/wasm/serialization/module/resources/w3c-import.log: Added.
     192        * web-platform-tests/wasm/serialization/module/serialization-via-history-expected.txt: Added.
     193        * web-platform-tests/wasm/serialization/module/serialization-via-history.html: Added.
     194        * web-platform-tests/wasm/serialization/module/serialization-via-idb.any-expected.txt: Added.
     195        * web-platform-tests/wasm/serialization/module/serialization-via-idb.any.html: Added.
     196        * web-platform-tests/wasm/serialization/module/serialization-via-idb.any.js: Added.
     197        (createEmptyWasmModule):
     198        (async_test.t.openReq.onupgradeneeded.e.store.put.property.get x):
     199        (async_test.t.openReq.onupgradeneeded.e.store.put.createEmptyWasmModule.get x):
     200        (async_test.t.openReq.onupgradeneeded.e.store.put.createEmptyWasmModule):
     201        * web-platform-tests/wasm/serialization/module/serialization-via-idb.any.worker-expected.txt: Added.
     202        * web-platform-tests/wasm/serialization/module/serialization-via-idb.any.worker.html: Added.
     203        * web-platform-tests/wasm/serialization/module/serialization-via-notifications-api.any-expected.txt: Added.
     204        * web-platform-tests/wasm/serialization/module/serialization-via-notifications-api.any.html: Added.
     205        * web-platform-tests/wasm/serialization/module/serialization-via-notifications-api.any.js: Added.
     206        (createEmptyWasmModule):
     207        (test):
     208        * web-platform-tests/wasm/serialization/module/serialization-via-notifications-api.any.worker-expected.txt: Added.
     209        * web-platform-tests/wasm/serialization/module/serialization-via-notifications-api.any.worker.html: Added.
     210        * web-platform-tests/wasm/serialization/module/w3c-import.log: Added.
     211        * web-platform-tests/wasm/serialization/module/window-domain-success.sub-expected.txt: Added.
     212        * web-platform-tests/wasm/serialization/module/window-domain-success.sub.html: Added.
     213        * web-platform-tests/wasm/serialization/module/window-messagechannel-success-expected.txt: Added.
     214        * web-platform-tests/wasm/serialization/module/window-messagechannel-success.html: Added.
     215        * web-platform-tests/wasm/serialization/module/window-serviceworker-failure.https-expected.txt: Added.
     216        * web-platform-tests/wasm/serialization/module/window-serviceworker-failure.https.html: Added.
     217        * web-platform-tests/wasm/serialization/module/window-sharedworker-failure-expected.txt: Added.
     218        * web-platform-tests/wasm/serialization/module/window-sharedworker-failure.html: Added.
     219        * web-platform-tests/wasm/serialization/module/window-similar-but-cross-origin-success.sub-expected.txt: Added.
     220        * web-platform-tests/wasm/serialization/module/window-similar-but-cross-origin-success.sub.html: Added.
     221        * web-platform-tests/wasm/serialization/module/window-simple-success-expected.txt: Added.
     222        * web-platform-tests/wasm/serialization/module/window-simple-success.html: Added.
     223        * web-platform-tests/wasm/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log.
     224        * web-platform-tests/wasm/webapi/abort.any-expected.txt: Added.
     225        * web-platform-tests/wasm/webapi/abort.any.html: Added.
     226        * web-platform-tests/wasm/webapi/abort.any.js: Added.
     227        (const.method.of.methods.promise_test.async t):
     228        (const.method.of.methods.return.promise_rejects_dom):
     229        * web-platform-tests/wasm/webapi/abort.any.worker-expected.txt: Added.
     230        * web-platform-tests/wasm/webapi/abort.any.worker.html: Added.
     231        * web-platform-tests/wasm/webapi/body.any-expected.txt: Added.
     232        * web-platform-tests/wasm/webapi/body.any.html: Added.
     233        * web-platform-tests/wasm/webapi/body.any.js: Added.
     234        (string_appeared_here.WebAssembly.method):
     235        (string_appeared_here.return.promise_rejects_js):
     236        * web-platform-tests/wasm/webapi/body.any.worker-expected.txt: Added.
     237        * web-platform-tests/wasm/webapi/body.any.worker.html: Added.
     238        * web-platform-tests/wasm/webapi/contenttype.any-expected.txt: Added.
     239        * web-platform-tests/wasm/webapi/contenttype.any.html: Added.
     240        * web-platform-tests/wasm/webapi/contenttype.any.js: Added.
     241        (const.contenttype.of.validContentTypes.promise_test.async t):
     242        * web-platform-tests/wasm/webapi/contenttype.any.worker-expected.txt: Added.
     243        * web-platform-tests/wasm/webapi/contenttype.any.worker.html: Added.
     244        * web-platform-tests/wasm/webapi/empty-body.any-expected.txt: Added.
     245        * web-platform-tests/wasm/webapi/empty-body.any.html: Added.
     246        * web-platform-tests/wasm/webapi/empty-body.any.js: Added.
     247        (string_appeared_here.name.of.invalidArguments.WebAssembly.method):
     248        * web-platform-tests/wasm/webapi/empty-body.any.worker-expected.txt: Added.
     249        * web-platform-tests/wasm/webapi/empty-body.any.worker.html: Added.
     250        * web-platform-tests/wasm/webapi/historical.any-expected.txt: Added.
     251        * web-platform-tests/wasm/webapi/historical.any.html: Added.
     252        * web-platform-tests/wasm/webapi/historical.any.js: Added.
     253        (promise_test.async t.):
     254        (promise_test.async t):
     255        * web-platform-tests/wasm/webapi/historical.any.worker-expected.txt: Added.
     256        * web-platform-tests/wasm/webapi/historical.any.worker.html: Added.
     257        * web-platform-tests/wasm/webapi/idlharness.any-expected.txt: Added.
     258        * web-platform-tests/wasm/webapi/idlharness.any.html: Added.
     259        * web-platform-tests/wasm/webapi/idlharness.any.js: Added.
     260        * web-platform-tests/wasm/webapi/idlharness.any.worker-expected.txt: Added.
     261        * web-platform-tests/wasm/webapi/idlharness.any.worker.html: Added.
     262        * web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any-expected.txt: Added.
     263        * web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any.html: Added.
     264        * web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any.js: Added.
     265        (test_bad_imports):
     266        * web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any.worker-expected.txt: Added.
     267        * web-platform-tests/wasm/webapi/instantiateStreaming-bad-imports.any.worker.html: Added.
     268        * web-platform-tests/wasm/webapi/instantiateStreaming.any-expected.txt: Added.
     269        * web-platform-tests/wasm/webapi/instantiateStreaming.any.html: Added.
     270        * web-platform-tests/wasm/webapi/instantiateStreaming.any.js: Added.
     271        (setup):
     272        (fn.of.instanceTestFactory.promise_test.async const):
     273        (fn.of.instanceTestFactory.promise_test):
     274        (promise_test.async const):
     275        (promise_test.const.imports.get module.return.get global):
     276        (promise_test.const.imports.get module):
     277        (promise_test):
     278        * web-platform-tests/wasm/webapi/instantiateStreaming.any.worker-expected.txt: Added.
     279        * web-platform-tests/wasm/webapi/instantiateStreaming.any.worker.html: Added.
     280        * web-platform-tests/wasm/webapi/invalid-args.any-expected.txt: Added.
     281        * web-platform-tests/wasm/webapi/invalid-args.any.html: Added.
     282        * web-platform-tests/wasm/webapi/invalid-args.any.js: Added.
     283        (string_appeared_here.name.format_value):
     284        * web-platform-tests/wasm/webapi/invalid-args.any.worker-expected.txt: Added.
     285        * web-platform-tests/wasm/webapi/invalid-args.any.worker.html: Added.
     286        * web-platform-tests/wasm/webapi/invalid-code.any-expected.txt: Added.
     287        * web-platform-tests/wasm/webapi/invalid-code.any.html: Added.
     288        * web-platform-tests/wasm/webapi/invalid-code.any.js: Added.
     289        (setup):
     290        * web-platform-tests/wasm/webapi/invalid-code.any.worker-expected.txt: Added.
     291        * web-platform-tests/wasm/webapi/invalid-code.any.worker.html: Added.
     292        * web-platform-tests/wasm/webapi/origin.sub.any-expected.txt: Added.
     293        * web-platform-tests/wasm/webapi/origin.sub.any.html: Added.
     294        * web-platform-tests/wasm/webapi/origin.sub.any.js: Added.
     295        * web-platform-tests/wasm/webapi/origin.sub.any.worker-expected.txt: Added.
     296        * web-platform-tests/wasm/webapi/origin.sub.any.worker.html: Added.
     297        * web-platform-tests/wasm/webapi/rejected-arg.any-expected.txt: Added.
     298        * web-platform-tests/wasm/webapi/rejected-arg.any.html: Added.
     299        * web-platform-tests/wasm/webapi/rejected-arg.any.js: Added.
     300        (string_appeared_here.WebAssembly.method):
     301        * web-platform-tests/wasm/webapi/rejected-arg.any.worker-expected.txt: Added.
     302        * web-platform-tests/wasm/webapi/rejected-arg.any.worker.html: Added.
     303        * web-platform-tests/wasm/webapi/status.any-expected.txt: Added.
     304        * web-platform-tests/wasm/webapi/status.any.html: Added.
     305        * web-platform-tests/wasm/webapi/status.any.js: Added.
     306        * web-platform-tests/wasm/webapi/status.any.worker-expected.txt: Added.
     307        * web-platform-tests/wasm/webapi/status.any.worker.html: Added.
     308        * web-platform-tests/wasm/webapi/status.py: Added.
     309        (main):
     310        * web-platform-tests/wasm/webapi/w3c-import.log: Added.
     311
    13122020-11-16  Chris Dumez  <cdumez@apple.com>
    2313
  • trunk/LayoutTests/imported/w3c/resources/import-expectations.json

    r269679 r269866  
    418418    "web-platform-tests/visual-viewport": "import",
    419419    "web-platform-tests/wai-aria": "skip",
    420     "web-platform-tests/wasm": "skip",
     420    "web-platform-tests/wasm": "import",
    421421    "web-platform-tests/wasm/jsapi": "import",
    422422    "web-platform-tests/web-animations": "import",
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/bad-imports.js

    r260690 r269866  
    1212 */
    1313function test_bad_imports(t) {
     14  function value_type(type) {
     15    switch (type) {
     16      case "i32": return kWasmI32;
     17      case "i64": return kWasmI64;
     18      case "f32": return kWasmF32;
     19      case "f64": return kWasmF64;
     20      default: throw new TypeError(`Unexpected type ${type}`);
     21    }
     22  }
     23
    1424  for (const value of [null, true, "", Symbol(), 1, 0.1, NaN]) {
    1525    t(`Non-object imports argument: ${format_value(value)}`,
     
    4656  }
    4757
    48   t(`Importing an i64 global`,
    49     WebAssembly.LinkError,
    50     builder => {
    51       builder.addImportedGlobal("module", "global", kWasmI64);
    52     },
    53     {
    54       "module": {
    55         "global": 0,
    56       },
    57     });
    58 
    5958  for (const value of [undefined, null, true, "", Symbol(), 1, 0.1, NaN, {}]) {
    6059    t(`Importing a function with an incorrectly-typed value: ${format_value(value)}`,
     
    8079    [WebAssembly.Global.prototype, "WebAssembly.Global.prototype"],
    8180    [Object.create(WebAssembly.Global.prototype), "Object.create(WebAssembly.Global.prototype)"],
    82     [new WebAssembly.Global({value: "f32"}), "WebAssembly.Global object (wrong value type)"],
    8381  ];
    8482
    85   for (const [value, name = format_value(value)] of nonGlobals) {
    86     t(`Importing a global with an incorrectly-typed value: ${name}`,
     83  for (const type of ["i32", "i64", "f32", "f64"]) {
     84    const extendedNonGlobals = nonGlobals.concat([
     85      type === "i64" ? [0, "Number"] : [0n, "BigInt"],
     86      [new WebAssembly.Global({value: type === "f32" ? "f64" : "f32"}), "WebAssembly.Global object (wrong value type)"],
     87    ]);
     88    for (const [value, name = format_value(value)] of extendedNonGlobals) {
     89      t(`Importing an ${type} global with an incorrectly-typed value: ${name}`,
     90        WebAssembly.LinkError,
     91        builder => {
     92          builder.addImportedGlobal("module", "global", value_type(type));
     93        },
     94        {
     95          "module": {
     96            "global": value,
     97          },
     98        });
     99    }
     100  }
     101
     102  for (const type of ["i32", "i64", "f32", "f64"]) {
     103    const value = type === "i64" ? 0n : 0;
     104    t(`Importing an ${type} mutable global with a primitive value`,
    87105      WebAssembly.LinkError,
    88106      builder => {
    89         builder.addImportedGlobal("module", "global", kWasmI32);
     107        builder.addImportedGlobal("module", "global", value_type(type), true);
    90108      },
    91109      {
    92110        "module": {
    93111          "global": value,
     112        },
     113      });
     114
     115    const global = new WebAssembly.Global({ "value": type }, value);
     116    t(`Importing an ${type} mutable global with an immutable Global object`,
     117      WebAssembly.LinkError,
     118      builder => {
     119        builder.addImportedGlobal("module", "global", value_type(type), true);
     120      },
     121      {
     122        "module": {
     123          "global": global,
    94124        },
    95125      });
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/instantiate-bad-imports.any-expected.txt

    r267649 r269866  
     1CONSOLE MESSAGE: TypeError: WebAssembly.Global does not accept i64 initial value
     2
     3Harness Error (FAIL), message = TypeError: WebAssembly.Global does not accept i64 initial value
    14
    25PASS WebAssembly.instantiate(module): Non-object imports argument: null
     
    1922PASS WebAssembly.instantiate(module): Imports argument with missing property: empty object
    2023PASS WebAssembly.instantiate(module): Imports argument with missing property: wrong property
    21 PASS WebAssembly.instantiate(module): Importing an i64 global
    2224PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: undefined
    2325PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: null
     
    2931PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: NaN
    3032PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: object "[object Object]"
    31 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: undefined
    32 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: null
    33 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: true
    34 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: ""
    35 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: symbol "Symbol()"
    36 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: plain object
    37 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: WebAssembly.Global
    38 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: WebAssembly.Global.prototype
    39 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
    40 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
    41 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: undefined
    42 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: null
    43 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: true
    44 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: ""
    45 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: symbol "Symbol()"
    46 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: 1
    47 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: 0.1
    48 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: NaN
    49 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: plain object
    50 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory
    51 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory.prototype
    52 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: Object.create(WebAssembly.Memory.prototype)
    53 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory object (too large)
    54 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: undefined
    55 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: null
    56 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: true
    57 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: ""
    58 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: symbol "Symbol()"
    59 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: 1
    60 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: 0.1
    61 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: NaN
    62 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: plain object
    63 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: WebAssembly.Table
    64 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: WebAssembly.Table.prototype
    65 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: Object.create(WebAssembly.Table.prototype)
    66 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: WebAssembly.Table object (too large)
    67 PASS WebAssembly.instantiate(buffer): Non-object imports argument: null
    68 PASS WebAssembly.instantiate(buffer): Non-object imports argument: true
    69 PASS WebAssembly.instantiate(buffer): Non-object imports argument: ""
    70 PASS WebAssembly.instantiate(buffer): Non-object imports argument: symbol "Symbol()"
    71 PASS WebAssembly.instantiate(buffer): Non-object imports argument: 1
    72 PASS WebAssembly.instantiate(buffer): Non-object imports argument: 0.1
    73 PASS WebAssembly.instantiate(buffer): Non-object imports argument: NaN
    74 PASS WebAssembly.instantiate(buffer): Non-object module: undefined
    75 PASS WebAssembly.instantiate(buffer): Non-object module: null
    76 PASS WebAssembly.instantiate(buffer): Non-object module: true
    77 PASS WebAssembly.instantiate(buffer): Non-object module: ""
    78 PASS WebAssembly.instantiate(buffer): Non-object module: symbol "Symbol()"
    79 PASS WebAssembly.instantiate(buffer): Non-object module: 1
    80 PASS WebAssembly.instantiate(buffer): Non-object module: 0.1
    81 PASS WebAssembly.instantiate(buffer): Non-object module: NaN
    82 PASS WebAssembly.instantiate(buffer): Missing imports argument
    83 PASS WebAssembly.instantiate(buffer): Imports argument with missing property: undefined
    84 PASS WebAssembly.instantiate(buffer): Imports argument with missing property: empty object
    85 PASS WebAssembly.instantiate(buffer): Imports argument with missing property: wrong property
    86 PASS WebAssembly.instantiate(buffer): Importing an i64 global
    87 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: undefined
    88 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: null
    89 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: true
    90 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: ""
    91 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: symbol "Symbol()"
    92 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: 1
    93 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: 0.1
    94 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: NaN
    95 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: object "[object Object]"
    96 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: undefined
    97 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: null
    98 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: true
    99 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: ""
    100 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: symbol "Symbol()"
    101 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: plain object
    102 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: WebAssembly.Global
    103 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: WebAssembly.Global.prototype
    104 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
    105 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
    106 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: undefined
    107 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: null
    108 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: true
    109 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: ""
    110 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: symbol "Symbol()"
    111 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: 1
    112 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: 0.1
    113 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: NaN
    114 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: plain object
    115 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: WebAssembly.Memory
    116 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: WebAssembly.Memory.prototype
    117 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: Object.create(WebAssembly.Memory.prototype)
    118 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: WebAssembly.Memory object (too large)
    119 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: undefined
    120 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: null
    121 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: true
    122 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: ""
    123 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: symbol "Symbol()"
    124 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: 1
    125 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: 0.1
    126 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: NaN
    127 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: plain object
    128 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: WebAssembly.Table
    129 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: WebAssembly.Table.prototype
    130 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: Object.create(WebAssembly.Table.prototype)
    131 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: WebAssembly.Table object (too large)
     33PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: undefined
     34PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: null
     35PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: true
     36PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: ""
     37PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: symbol "Symbol()"
     38PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: plain object
     39PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global
     40PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global.prototype
     41PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     42PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: BigInt
     43PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     44PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: undefined
     45PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: null
     46PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: true
     47PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: ""
     48PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: symbol "Symbol()"
     49PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: plain object
     50PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global
     51PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global.prototype
     52PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     53PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: Number
     54PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     55PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: undefined
     56PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: null
     57PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: true
     58PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: ""
     59PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: symbol "Symbol()"
     60PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: plain object
     61PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global
     62PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global.prototype
     63PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     64PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: BigInt
     65PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     66PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: undefined
     67PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: null
     68PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: true
     69PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: ""
     70PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: symbol "Symbol()"
     71PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: plain object
     72PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global
     73PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global.prototype
     74PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     75PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: BigInt
     76PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     77PASS WebAssembly.instantiate(module): Importing an i32 mutable global with a primitive value
     78PASS WebAssembly.instantiate(module): Importing an i32 mutable global with an immutable Global object
     79PASS WebAssembly.instantiate(module): Importing an i64 mutable global with a primitive value
    13280
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/instantiate-bad-imports.any.worker-expected.txt

    r267649 r269866  
     1
     2Harness Error (FAIL), message = Error in remote http://localhost:8800/wasm/jsapi/bad-imports.js: TypeError: WebAssembly.Global does not accept i64 initial value
    13
    24PASS WebAssembly.instantiate(module): Non-object imports argument: null
     
    1921PASS WebAssembly.instantiate(module): Imports argument with missing property: empty object
    2022PASS WebAssembly.instantiate(module): Imports argument with missing property: wrong property
    21 PASS WebAssembly.instantiate(module): Importing an i64 global
    2223PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: undefined
    2324PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: null
     
    2930PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: NaN
    3031PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: object "[object Object]"
    31 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: undefined
    32 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: null
    33 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: true
    34 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: ""
    35 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: symbol "Symbol()"
    36 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: plain object
    37 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: WebAssembly.Global
    38 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: WebAssembly.Global.prototype
    39 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
    40 PASS WebAssembly.instantiate(module): Importing a global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
    41 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: undefined
    42 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: null
    43 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: true
    44 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: ""
    45 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: symbol "Symbol()"
    46 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: 1
    47 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: 0.1
    48 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: NaN
    49 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: plain object
    50 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory
    51 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory.prototype
    52 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: Object.create(WebAssembly.Memory.prototype)
    53 PASS WebAssembly.instantiate(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory object (too large)
    54 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: undefined
    55 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: null
    56 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: true
    57 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: ""
    58 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: symbol "Symbol()"
    59 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: 1
    60 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: 0.1
    61 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: NaN
    62 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: plain object
    63 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: WebAssembly.Table
    64 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: WebAssembly.Table.prototype
    65 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: Object.create(WebAssembly.Table.prototype)
    66 PASS WebAssembly.instantiate(module): Importing table with an incorrectly-typed value: WebAssembly.Table object (too large)
    67 PASS WebAssembly.instantiate(buffer): Non-object imports argument: null
    68 PASS WebAssembly.instantiate(buffer): Non-object imports argument: true
    69 PASS WebAssembly.instantiate(buffer): Non-object imports argument: ""
    70 PASS WebAssembly.instantiate(buffer): Non-object imports argument: symbol "Symbol()"
    71 PASS WebAssembly.instantiate(buffer): Non-object imports argument: 1
    72 PASS WebAssembly.instantiate(buffer): Non-object imports argument: 0.1
    73 PASS WebAssembly.instantiate(buffer): Non-object imports argument: NaN
    74 PASS WebAssembly.instantiate(buffer): Non-object module: undefined
    75 PASS WebAssembly.instantiate(buffer): Non-object module: null
    76 PASS WebAssembly.instantiate(buffer): Non-object module: true
    77 PASS WebAssembly.instantiate(buffer): Non-object module: ""
    78 PASS WebAssembly.instantiate(buffer): Non-object module: symbol "Symbol()"
    79 PASS WebAssembly.instantiate(buffer): Non-object module: 1
    80 PASS WebAssembly.instantiate(buffer): Non-object module: 0.1
    81 PASS WebAssembly.instantiate(buffer): Non-object module: NaN
    82 PASS WebAssembly.instantiate(buffer): Missing imports argument
    83 PASS WebAssembly.instantiate(buffer): Imports argument with missing property: undefined
    84 PASS WebAssembly.instantiate(buffer): Imports argument with missing property: empty object
    85 PASS WebAssembly.instantiate(buffer): Imports argument with missing property: wrong property
    86 PASS WebAssembly.instantiate(buffer): Importing an i64 global
    87 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: undefined
    88 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: null
    89 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: true
    90 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: ""
    91 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: symbol "Symbol()"
    92 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: 1
    93 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: 0.1
    94 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: NaN
    95 PASS WebAssembly.instantiate(buffer): Importing a function with an incorrectly-typed value: object "[object Object]"
    96 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: undefined
    97 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: null
    98 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: true
    99 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: ""
    100 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: symbol "Symbol()"
    101 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: plain object
    102 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: WebAssembly.Global
    103 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: WebAssembly.Global.prototype
    104 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
    105 PASS WebAssembly.instantiate(buffer): Importing a global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
    106 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: undefined
    107 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: null
    108 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: true
    109 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: ""
    110 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: symbol "Symbol()"
    111 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: 1
    112 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: 0.1
    113 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: NaN
    114 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: plain object
    115 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: WebAssembly.Memory
    116 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: WebAssembly.Memory.prototype
    117 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: Object.create(WebAssembly.Memory.prototype)
    118 PASS WebAssembly.instantiate(buffer): Importing memory with an incorrectly-typed value: WebAssembly.Memory object (too large)
    119 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: undefined
    120 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: null
    121 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: true
    122 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: ""
    123 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: symbol "Symbol()"
    124 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: 1
    125 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: 0.1
    126 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: NaN
    127 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: plain object
    128 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: WebAssembly.Table
    129 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: WebAssembly.Table.prototype
    130 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: Object.create(WebAssembly.Table.prototype)
    131 PASS WebAssembly.instantiate(buffer): Importing table with an incorrectly-typed value: WebAssembly.Table object (too large)
     32PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: undefined
     33PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: null
     34PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: true
     35PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: ""
     36PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: symbol "Symbol()"
     37PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: plain object
     38PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global
     39PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global.prototype
     40PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     41PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: BigInt
     42PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     43PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: undefined
     44PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: null
     45PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: true
     46PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: ""
     47PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: symbol "Symbol()"
     48PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: plain object
     49PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global
     50PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global.prototype
     51PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     52PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: Number
     53PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     54PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: undefined
     55PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: null
     56PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: true
     57PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: ""
     58PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: symbol "Symbol()"
     59PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: plain object
     60PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global
     61PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global.prototype
     62PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     63PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: BigInt
     64PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     65PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: undefined
     66PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: null
     67PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: true
     68PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: ""
     69PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: symbol "Symbol()"
     70PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: plain object
     71PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global
     72PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global.prototype
     73PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     74PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: BigInt
     75PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     76PASS WebAssembly.instantiate(module): Importing an i32 mutable global with a primitive value
     77PASS WebAssembly.instantiate(module): Importing an i32 mutable global with an immutable Global object
     78PASS WebAssembly.instantiate(module): Importing an i64 mutable global with a primitive value
    13279
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/instantiate.any-expected.txt

    r267649 r269866  
    1818FAIL exports and imports: BufferSource argument assert_false: fn: writable expected false got true
    1919FAIL exports and imports: Module argument assert_false: fn: writable expected false got true
     20FAIL i64 exports and imports: BufferSource argument promise_test: Unhandled rejection with value: object "LinkError: imported global module:global cannot be an i64"
     21FAIL i64 exports and imports: Module argument promise_test: Unhandled rejection with value: object "LinkError: imported global module:global cannot be an i64"
     22FAIL import with i32-returning function: BufferSource argument assert_false: fn2: writable expected false got true
     23FAIL import with i32-returning function: Module argument assert_false: fn2: writable expected false got true
     24FAIL import with function that takes and returns i32: BufferSource argument assert_false: fn2: writable expected false got true
     25FAIL import with function that takes and returns i32: Module argument assert_false: fn2: writable expected false got true
     26FAIL import with i64-returning function: BufferSource argument assert_false: fn2: writable expected false got true
     27FAIL import with i64-returning function: Module argument assert_false: fn2: writable expected false got true
     28FAIL import with function that takes and returns i64: BufferSource argument assert_false: fn2: writable expected false got true
     29FAIL import with function that takes and returns i64: Module argument assert_false: fn2: writable expected false got true
     30FAIL import with i32-taking function: BufferSource argument assert_false: fn: writable expected false got true
     31FAIL import with i32-taking function: Module argument assert_false: fn: writable expected false got true
     32FAIL import with i64-taking function: BufferSource argument assert_false: fn: writable expected false got true
     33FAIL import with i64-taking function: Module argument assert_false: fn: writable expected false got true
     34FAIL export i64-returning function: BufferSource argument assert_false: fn: writable expected false got true
     35FAIL export i64-returning function: Module argument assert_false: fn: writable expected false got true
     36FAIL i32 mutable WebAssembly.Global import: BufferSource argument assert_false: fn: writable expected false got true
     37FAIL i32 mutable WebAssembly.Global import: Module argument assert_false: fn: writable expected false got true
     38FAIL i64 mutable WebAssembly.Global import: BufferSource argument WebAssembly.Global does not accept i64 initial value
     39FAIL i64 mutable WebAssembly.Global import: Module argument WebAssembly.Global does not accept i64 initial value
     40FAIL Multiple i64 arguments: BufferSource argument assert_false: fn: writable expected false got true
     41FAIL Multiple i64 arguments: Module argument assert_false: fn: writable expected false got true
    2042PASS stray argument: BufferSource argument
    2143PASS stray argument: Module argument
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/instantiate.any.worker-expected.txt

    r267649 r269866  
    1818FAIL exports and imports: BufferSource argument assert_false: fn: writable expected false got true
    1919FAIL exports and imports: Module argument assert_false: fn: writable expected false got true
     20FAIL i64 exports and imports: BufferSource argument promise_test: Unhandled rejection with value: object "LinkError: imported global module:global cannot be an i64"
     21FAIL i64 exports and imports: Module argument promise_test: Unhandled rejection with value: object "LinkError: imported global module:global cannot be an i64"
     22FAIL import with i32-returning function: BufferSource argument assert_false: fn2: writable expected false got true
     23FAIL import with i32-returning function: Module argument assert_false: fn2: writable expected false got true
     24FAIL import with function that takes and returns i32: BufferSource argument assert_false: fn2: writable expected false got true
     25FAIL import with function that takes and returns i32: Module argument assert_false: fn2: writable expected false got true
     26FAIL import with i64-returning function: BufferSource argument assert_false: fn2: writable expected false got true
     27FAIL import with i64-returning function: Module argument assert_false: fn2: writable expected false got true
     28FAIL import with function that takes and returns i64: BufferSource argument assert_false: fn2: writable expected false got true
     29FAIL import with function that takes and returns i64: Module argument assert_false: fn2: writable expected false got true
     30FAIL import with i32-taking function: BufferSource argument assert_false: fn: writable expected false got true
     31FAIL import with i32-taking function: Module argument assert_false: fn: writable expected false got true
     32FAIL import with i64-taking function: BufferSource argument assert_false: fn: writable expected false got true
     33FAIL import with i64-taking function: Module argument assert_false: fn: writable expected false got true
     34FAIL export i64-returning function: BufferSource argument assert_false: fn: writable expected false got true
     35FAIL export i64-returning function: Module argument assert_false: fn: writable expected false got true
     36FAIL i32 mutable WebAssembly.Global import: BufferSource argument assert_false: fn: writable expected false got true
     37FAIL i32 mutable WebAssembly.Global import: Module argument assert_false: fn: writable expected false got true
     38FAIL i64 mutable WebAssembly.Global import: BufferSource argument WebAssembly.Global does not accept i64 initial value
     39FAIL i64 mutable WebAssembly.Global import: Module argument WebAssembly.Global does not accept i64 initial value
     40FAIL Multiple i64 arguments: BufferSource argument assert_false: fn: writable expected false got true
     41FAIL Multiple i64 arguments: Module argument assert_false: fn: writable expected false got true
    2042PASS stray argument: BufferSource argument
    2143PASS stray argument: Module argument
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/w3c-import.log

    r260690 r269866  
    1919/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/instantiate.any.js
    2020/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/multi-value.any.js
     21/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/toStringTag.any.js
    2122/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/validate.any.js
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/current/resources/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/current/resources/window-to-open.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/current/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/current/current.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/function/resources/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/function/resources/window-to-open.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/function/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/function/function.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/relevant/resources/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/relevant/resources/window-to-open.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/relevant/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/relevant/relevant.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/resources/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/resources/window-to-open.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/README.md
     18/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/entry-incumbent.html
     19/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/incumbent-incumbent.html
     20/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/resources/window-to-open.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/entry-different-function-realm.html
     18/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/entry.html
     19/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/helper.js
     20/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/functions/incumbent.html
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/constructor.any-expected.txt

    r267649 r269866  
    77PASS Invalid descriptor argument
    88PASS Invalid type argument
    9 PASS i64 with default
     9FAIL i64 with default WebAssembly.Global.prototype.value does not work with i64 type
    1010PASS Default value for type i32
    1111PASS Explicit value undefined for type i32
     
    1515PASS Explicit value 2 for type i32
    1616PASS Explicit value "3" for type i32
    17 PASS Explicit value object with toString for type i32
    18 PASS Explicit value object with valueOf for type i32
     17PASS Explicit value object with toString returning string for type i32
     18PASS Explicit value object with valueOf returning string for type i32
     19PASS Explicit value object with toString returning number for type i32
     20PASS Explicit value object with valueOf returning number for type i32
     21PASS BigInt value for type i32
    1922PASS Default value for type f32
    2023PASS Explicit value undefined for type f32
     
    2427PASS Explicit value 2 for type f32
    2528PASS Explicit value "3" for type f32
    26 PASS Explicit value object with toString for type f32
    27 PASS Explicit value object with valueOf for type f32
     29PASS Explicit value object with toString returning string for type f32
     30PASS Explicit value object with valueOf returning string for type f32
     31PASS Explicit value object with toString returning number for type f32
     32PASS Explicit value object with valueOf returning number for type f32
     33PASS BigInt value for type f32
    2834PASS Default value for type f64
    2935PASS Explicit value undefined for type f64
     
    3339PASS Explicit value 2 for type f64
    3440PASS Explicit value "3" for type f64
    35 PASS Explicit value object with toString for type f64
    36 PASS Explicit value object with valueOf for type f64
     41PASS Explicit value object with toString returning string for type f64
     42PASS Explicit value object with valueOf returning string for type f64
     43PASS Explicit value object with toString returning number for type f64
     44PASS Explicit value object with valueOf returning number for type f64
     45PASS BigInt value for type f64
     46FAIL Explicit value undefined for type i64 WebAssembly.Global.prototype.value does not work with i64 type
     47FAIL Explicit value true for type i64 WebAssembly.Global does not accept i64 initial value
     48FAIL Explicit value false for type i64 WebAssembly.Global does not accept i64 initial value
     49FAIL Explicit value "3" for type i64 WebAssembly.Global does not accept i64 initial value
     50FAIL Explicit value bigint "123" for type i64 WebAssembly.Global does not accept i64 initial value
     51FAIL Explicit value object with toString returning string for type i64 WebAssembly.Global does not accept i64 initial value
     52FAIL Explicit value object with valueOf returning string for type i64 WebAssembly.Global does not accept i64 initial value
     53FAIL Explicit value object with toString returning bigint for type i64 WebAssembly.Global does not accept i64 initial value
     54FAIL Explicit value object with valueOf returning bigint for type i64 WebAssembly.Global does not accept i64 initial value
     55PASS Pass non-bigint as i64 Global value: null
     56PASS Pass non-bigint as i64 Global value: 666
     57PASS Pass non-bigint as i64 Global value: object "5"
     58PASS Pass non-bigint as i64 Global value: object "[object Object]"
     59PASS Pass non-bigint as i64 Global value: symbol "Symbol()"
    3760PASS Stray argument
    3861
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/constructor.any.js

    r262312 r269866  
    9191  const argument = { "value": "i64" };
    9292  const global = new WebAssembly.Global(argument);
    93   assert_throws_js(TypeError, () => global.value);
    94   assert_throws_js(TypeError, () => global.valueOf());
     93  assert_Global(global, 0n);
    9594}, "i64 with default");
    9695
     
    109108    [2, 2],
    110109    ["3", 3],
    111     [{ toString() { return "5" } }, 5, "object with toString"],
    112     [{ valueOf() { return "8" } }, 8, "object with valueOf"],
     110    [{ toString() { return "5" } }, 5, "object with toString returning string"],
     111    [{ valueOf() { return "8" } }, 8, "object with valueOf returning string"],
     112    [{ toString() { return 6 } }, 6, "object with toString returning number"],
     113    [{ valueOf() { return 9 } }, 9, "object with valueOf returning number"],
    113114  ];
    114115  for (const [value, expected, name = format_value(value)] of valueArguments) {
     
    119120    }, `Explicit value ${name} for type ${type}`);
    120121  }
     122
     123  test(() => {
     124    const argument = { "value": type };
     125    assert_throws_js(TypeError, () => new WebAssembly.Global(argument, 0n));
     126  }, `BigInt value for type ${type}`);
     127}
     128
     129const valueArguments = [
     130  [undefined, 0n],
     131  [true, 1n],
     132  [false, 0n],
     133  ["3", 3n],
     134  [123n, 123n],
     135  [{ toString() { return "5" } }, 5n, "object with toString returning string"],
     136  [{ valueOf() { return "8" } }, 8n, "object with valueOf returning string"],
     137  [{ toString() { return 6n } }, 6n, "object with toString returning bigint"],
     138  [{ valueOf() { return 9n } }, 9n, "object with valueOf returning bigint"],
     139];
     140for (const [value, expected, name = format_value(value)] of valueArguments) {
     141  test(() => {
     142    const argument = { "value": "i64" };
     143    const global = new WebAssembly.Global(argument, value);
     144    assert_Global(global, expected);
     145  }, `Explicit value ${name} for type i64`);
     146}
     147
     148const invalidBigints = [
     149  null,
     150  666,
     151  { toString() { return 5 } },
     152  { valueOf() { return 8 } },
     153  Symbol(),
     154];
     155for (const invalidBigint of invalidBigints) {
     156  test(() => {
     157    var argument = { "value": "i64" };
     158    assert_throws_js(TypeError, () => new WebAssembly.Global(argument, invalidBigint));
     159  }, `Pass non-bigint as i64 Global value: ${format_value(invalidBigint)}`);
    121160}
    122161
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/constructor.any.worker-expected.txt

    r267649 r269866  
    77PASS Invalid descriptor argument
    88PASS Invalid type argument
    9 PASS i64 with default
     9FAIL i64 with default WebAssembly.Global.prototype.value does not work with i64 type
    1010PASS Default value for type i32
    1111PASS Explicit value undefined for type i32
     
    1515PASS Explicit value 2 for type i32
    1616PASS Explicit value "3" for type i32
    17 PASS Explicit value object with toString for type i32
    18 PASS Explicit value object with valueOf for type i32
     17PASS Explicit value object with toString returning string for type i32
     18PASS Explicit value object with valueOf returning string for type i32
     19PASS Explicit value object with toString returning number for type i32
     20PASS Explicit value object with valueOf returning number for type i32
     21PASS BigInt value for type i32
    1922PASS Default value for type f32
    2023PASS Explicit value undefined for type f32
     
    2427PASS Explicit value 2 for type f32
    2528PASS Explicit value "3" for type f32
    26 PASS Explicit value object with toString for type f32
    27 PASS Explicit value object with valueOf for type f32
     29PASS Explicit value object with toString returning string for type f32
     30PASS Explicit value object with valueOf returning string for type f32
     31PASS Explicit value object with toString returning number for type f32
     32PASS Explicit value object with valueOf returning number for type f32
     33PASS BigInt value for type f32
    2834PASS Default value for type f64
    2935PASS Explicit value undefined for type f64
     
    3339PASS Explicit value 2 for type f64
    3440PASS Explicit value "3" for type f64
    35 PASS Explicit value object with toString for type f64
    36 PASS Explicit value object with valueOf for type f64
     41PASS Explicit value object with toString returning string for type f64
     42PASS Explicit value object with valueOf returning string for type f64
     43PASS Explicit value object with toString returning number for type f64
     44PASS Explicit value object with valueOf returning number for type f64
     45PASS BigInt value for type f64
     46FAIL Explicit value undefined for type i64 WebAssembly.Global.prototype.value does not work with i64 type
     47FAIL Explicit value true for type i64 WebAssembly.Global does not accept i64 initial value
     48FAIL Explicit value false for type i64 WebAssembly.Global does not accept i64 initial value
     49FAIL Explicit value "3" for type i64 WebAssembly.Global does not accept i64 initial value
     50FAIL Explicit value bigint "123" for type i64 WebAssembly.Global does not accept i64 initial value
     51FAIL Explicit value object with toString returning string for type i64 WebAssembly.Global does not accept i64 initial value
     52FAIL Explicit value object with valueOf returning string for type i64 WebAssembly.Global does not accept i64 initial value
     53FAIL Explicit value object with toString returning bigint for type i64 WebAssembly.Global does not accept i64 initial value
     54FAIL Explicit value object with valueOf returning bigint for type i64 WebAssembly.Global does not accept i64 initial value
     55PASS Pass non-bigint as i64 Global value: null
     56PASS Pass non-bigint as i64 Global value: 666
     57PASS Pass non-bigint as i64 Global value: object "5"
     58PASS Pass non-bigint as i64 Global value: object "[object Object]"
     59PASS Pass non-bigint as i64 Global value: symbol "Symbol()"
    3760PASS Stray argument
    3861
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/value-get-set.any-expected.txt

    r267649 r269866  
    1717PASS Mutable i32 (string)
    1818PASS Mutable i32 (true on prototype)
     19FAIL Immutable i64 (missing) WebAssembly.Global.prototype.value does not work with i64 type
     20FAIL Immutable i64 with ToNumber side-effects (missing) WebAssembly.Global.prototype.value does not work with i64 type
     21FAIL Immutable i64 (undefined) WebAssembly.Global.prototype.value does not work with i64 type
     22FAIL Immutable i64 with ToNumber side-effects (undefined) WebAssembly.Global.prototype.value does not work with i64 type
     23FAIL Immutable i64 (null) WebAssembly.Global.prototype.value does not work with i64 type
     24FAIL Immutable i64 with ToNumber side-effects (null) WebAssembly.Global.prototype.value does not work with i64 type
     25FAIL Immutable i64 (false) WebAssembly.Global.prototype.value does not work with i64 type
     26FAIL Immutable i64 with ToNumber side-effects (false) WebAssembly.Global.prototype.value does not work with i64 type
     27FAIL Immutable i64 (empty string) WebAssembly.Global.prototype.value does not work with i64 type
     28FAIL Immutable i64 with ToNumber side-effects (empty string) WebAssembly.Global.prototype.value does not work with i64 type
     29FAIL Immutable i64 (zero) WebAssembly.Global.prototype.value does not work with i64 type
     30FAIL Immutable i64 with ToNumber side-effects (zero) WebAssembly.Global.prototype.value does not work with i64 type
     31FAIL Mutable i64 (true) WebAssembly.Global.prototype.value does not work with i64 type
     32FAIL Mutable i64 (one) WebAssembly.Global.prototype.value does not work with i64 type
     33FAIL Mutable i64 (string) WebAssembly.Global.prototype.value does not work with i64 type
     34FAIL Mutable i64 (true on prototype) WebAssembly.Global.prototype.value does not work with i64 type
    1935PASS Immutable f32 (missing)
    2036PASS Immutable f32 with ToNumber side-effects (missing)
     
    4965PASS Mutable f64 (string)
    5066PASS Mutable f64 (true on prototype)
    51 PASS i64 with default
    52 PASS i64 with ToNumber side-effects
     67FAIL i64 mutability WebAssembly.Global.prototype.value does not work with i64 type
    5368PASS Calling setter without argument
    5469PASS Stray argument
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/value-get-set.any.js

    r262312 r269866  
    2929}, "Branding");
    3030
    31 for (const type of ["i32", "f32", "f64"]) {
     31for (const type of ["i32", "i64", "f32", "f64"]) {
     32  const [initial, value, invalid] = type === "i64" ? [0n, 1n, 2] : [0, 1, 2n];
    3233  const immutableOptions = [
    3334    [{}, "missing"],
     
    4243      opts.value = type;
    4344      const global = new WebAssembly.Global(opts);
    44       assert_equals(global.value, 0, "initial value");
    45       assert_equals(global.valueOf(), 0, "initial valueOf");
     45      assert_equals(global.value, initial, "initial value");
     46      assert_equals(global.valueOf(), initial, "initial valueOf");
    4647
    47       assert_throws_js(TypeError, () => global.value = 1);
     48      assert_throws_js(TypeError, () => global.value = value);
    4849
    49       assert_equals(global.value, 0, "post-set value");
    50       assert_equals(global.valueOf(), 0, "post-set valueOf");
     50      assert_equals(global.value, initial, "post-set value");
     51      assert_equals(global.valueOf(), initial, "post-set valueOf");
    5152    }, `Immutable ${type} (${name})`);
    5253
     
    5455      opts.value = type;
    5556      const global = new WebAssembly.Global(opts);
    56       assert_equals(global.value, 0, "initial value");
    57       assert_equals(global.valueOf(), 0, "initial valueOf");
     57      assert_equals(global.value, initial, "initial value");
     58      assert_equals(global.valueOf(), initial, "initial valueOf");
    5859
    5960      const value = {
     
    6364      assert_throws_js(TypeError, () => global.value = value);
    6465
    65       assert_equals(global.value, 0, "post-set value");
    66       assert_equals(global.valueOf(), 0, "post-set valueOf");
     66      assert_equals(global.value, initial, "post-set value");
     67      assert_equals(global.valueOf(), initial, "post-set valueOf");
    6768    }, `Immutable ${type} with ToNumber side-effects (${name})`);
    6869  }
     
    7879      opts.value = type;
    7980      const global = new WebAssembly.Global(opts);
    80       assert_equals(global.value, 0, "initial value");
    81       assert_equals(global.valueOf(), 0, "initial valueOf");
     81      assert_equals(global.value, initial, "initial value");
     82      assert_equals(global.valueOf(), initial, "initial valueOf");
    8283
    83       global.value = 1;
     84      global.value = value;
    8485
    85       assert_equals(global.value, 1, "post-set value");
    86       assert_equals(global.valueOf(), 1, "post-set valueOf");
     86      assert_throws_js(TypeError, () => global.value = invalid);
     87
     88      assert_equals(global.value, value, "post-set value");
     89      assert_equals(global.valueOf(), value, "post-set valueOf");
    8790    }, `Mutable ${type} (${name})`);
    8891  }
     
    9295  const argument = { "value": "i64", "mutable": true };
    9396  const global = new WebAssembly.Global(argument);
    94   assert_throws_js(TypeError, () => global.value);
    95   assert_throws_js(TypeError, () => global.value = 0);
    96   assert_throws_js(TypeError, () => global.valueOf());
    97 }, "i64 with default");
    9897
    99 test(t => {
    100   const argument = { "value": "i64", "mutable": true };
    101   const global = new WebAssembly.Global(argument);
    102   const value = {
    103     valueOf: t.unreached_func("should not call valueOf"),
    104     toString: t.unreached_func("should not call toString"),
    105   };
    106   assert_throws_js(TypeError, () => global.value = value);
    107 }, "i64 with ToNumber side-effects");
     98  assert_equals(global.value, 0n, "initial value using ToJSValue");
     99
     100  const valid = [
     101    [123n, 123n],
     102    [2n ** 63n, - (2n ** 63n)],
     103    [true, 1n],
     104    [false, 0n],
     105    ["456", 456n],
     106  ];
     107  for (const [input, output] of valid) {
     108    global.value = input;
     109    assert_equals(global.valueOf(), output, "post-set valueOf");
     110  }
     111
     112  const invalid = [
     113    undefined,
     114    null,
     115    0,
     116    1,
     117    4.2,
     118    Symbol(),
     119  ];
     120  for (const input of invalid) {
     121    assert_throws_js(TypeError, () => global.value = input);
     122  }
     123}, "i64 mutability");
    108124
    109125test(() => {
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/value-get-set.any.worker-expected.txt

    r267649 r269866  
    1717PASS Mutable i32 (string)
    1818PASS Mutable i32 (true on prototype)
     19FAIL Immutable i64 (missing) WebAssembly.Global.prototype.value does not work with i64 type
     20FAIL Immutable i64 with ToNumber side-effects (missing) WebAssembly.Global.prototype.value does not work with i64 type
     21FAIL Immutable i64 (undefined) WebAssembly.Global.prototype.value does not work with i64 type
     22FAIL Immutable i64 with ToNumber side-effects (undefined) WebAssembly.Global.prototype.value does not work with i64 type
     23FAIL Immutable i64 (null) WebAssembly.Global.prototype.value does not work with i64 type
     24FAIL Immutable i64 with ToNumber side-effects (null) WebAssembly.Global.prototype.value does not work with i64 type
     25FAIL Immutable i64 (false) WebAssembly.Global.prototype.value does not work with i64 type
     26FAIL Immutable i64 with ToNumber side-effects (false) WebAssembly.Global.prototype.value does not work with i64 type
     27FAIL Immutable i64 (empty string) WebAssembly.Global.prototype.value does not work with i64 type
     28FAIL Immutable i64 with ToNumber side-effects (empty string) WebAssembly.Global.prototype.value does not work with i64 type
     29FAIL Immutable i64 (zero) WebAssembly.Global.prototype.value does not work with i64 type
     30FAIL Immutable i64 with ToNumber side-effects (zero) WebAssembly.Global.prototype.value does not work with i64 type
     31FAIL Mutable i64 (true) WebAssembly.Global.prototype.value does not work with i64 type
     32FAIL Mutable i64 (one) WebAssembly.Global.prototype.value does not work with i64 type
     33FAIL Mutable i64 (string) WebAssembly.Global.prototype.value does not work with i64 type
     34FAIL Mutable i64 (true on prototype) WebAssembly.Global.prototype.value does not work with i64 type
    1935PASS Immutable f32 (missing)
    2036PASS Immutable f32 with ToNumber side-effects (missing)
     
    4965PASS Mutable f64 (string)
    5066PASS Mutable f64 (true on prototype)
    51 PASS i64 with default
    52 PASS i64 with ToNumber side-effects
     67FAIL i64 mutability WebAssembly.Global.prototype.value does not work with i64 type
    5368PASS Calling setter without argument
    5469PASS Stray argument
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any-expected.txt

    r269186 r269866  
    11
    2 PASS wasm-js-api interfaces.
     2PASS idl_test setup
     3PASS idl_test validation
    34PASS WebAssembly namespace: extended attributes
    45PASS WebAssembly namespace: property descriptor
     
    1920PASS Module interface: operation imports(Module)
    2021PASS Module interface: operation customSections(Module, DOMString)
    21 FAIL Module must be primary interface of mod assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mod"
    22 FAIL Stringification of mod assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mod"
    23 FAIL Module interface: mod must inherit property "exports(Module)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mod"
    24 FAIL Module interface: calling exports(Module) on mod with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mod"
    25 FAIL Module interface: mod must inherit property "imports(Module)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mod"
    26 FAIL Module interface: calling imports(Module) on mod with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mod"
    27 FAIL Module interface: mod must inherit property "customSections(Module, DOMString)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mod"
    28 FAIL Module interface: calling customSections(Module, DOMString) on mod with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: mod"
     22PASS Module must be primary interface of [object WebAssembly.Module]
     23PASS Stringification of [object WebAssembly.Module]
     24PASS Module interface: [object WebAssembly.Module] must inherit property "exports(Module)" with the proper type
     25PASS Module interface: calling exports(Module) on [object WebAssembly.Module] with too few arguments must throw TypeError
     26PASS Module interface: [object WebAssembly.Module] must inherit property "imports(Module)" with the proper type
     27PASS Module interface: calling imports(Module) on [object WebAssembly.Module] with too few arguments must throw TypeError
     28PASS Module interface: [object WebAssembly.Module] must inherit property "customSections(Module, DOMString)" with the proper type
     29PASS Module interface: calling customSections(Module, DOMString) on [object WebAssembly.Module] with too few arguments must throw TypeError
    2930PASS Instance interface: existence and properties of interface object
    3031PASS Instance interface object length
     
    3435PASS Instance interface: existence and properties of interface prototype object's @@unscopables property
    3536PASS Instance interface: attribute exports
    36 FAIL Instance must be primary interface of instance assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: instance"
    37 FAIL Stringification of instance assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: instance"
    38 FAIL Instance interface: instance must inherit property "exports" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "ReferenceError: Can't find variable: instance"
     37PASS Instance must be primary interface of [object WebAssembly.Instance]
     38PASS Stringification of [object WebAssembly.Instance]
     39PASS Instance interface: [object WebAssembly.Instance] must inherit property "exports" with the proper type
    3940PASS Memory interface: existence and properties of interface object
    4041PASS Memory interface object length
     
    4546PASS Memory interface: operation grow(unsigned long)
    4647PASS Memory interface: attribute buffer
    47 PASS Memory must be primary interface of memory
    48 PASS Stringification of memory
    49 PASS Memory interface: memory must inherit property "grow(unsigned long)" with the proper type
    50 PASS Memory interface: calling grow(unsigned long) on memory with too few arguments must throw TypeError
    51 PASS Memory interface: memory must inherit property "buffer" with the proper type
     48PASS Memory must be primary interface of [object WebAssembly.Memory]
     49PASS Stringification of [object WebAssembly.Memory]
     50PASS Memory interface: [object WebAssembly.Memory] must inherit property "grow(unsigned long)" with the proper type
     51PASS Memory interface: calling grow(unsigned long) on [object WebAssembly.Memory] with too few arguments must throw TypeError
     52PASS Memory interface: [object WebAssembly.Memory] must inherit property "buffer" with the proper type
    5253PASS Table interface: existence and properties of interface object
    5354PASS Table interface object length
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any.js

    r264573 r269866  
    77// https://webassembly.github.io/spec/js-api/
    88
    9 promise_test(async () => {
    10   const srcs = ['wasm-js-api'];
    11   const [wasm] = await Promise.all(
    12     srcs.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text())));
    13 
    14   const idl_array = new IdlArray();
    15   idl_array.add_idls(wasm, {
    16     // Note the prose requirements in the specification.
    17     except: ['CompileError', 'LinkError', 'RuntimeError']
    18   });
    19 
    20   // Ignored errors are surfaced in idlharness.js's test_object below.
    21   try {
    22     self.memory = new WebAssembly.Memory({initial: 1024});
    23   } catch (e) { }
    24 
    25   try {
     9idl_test(
     10  ['wasm-js-api'],
     11  [],
     12  async idl_array => {
    2613    self.mod = await createWasmModule();
    2714    self.instance = new WebAssembly.Instance(self.mod);
    28   } catch (e) { }
    2915
    30   idl_array.add_objects({
    31     Memory: ['memory'],
    32     Module: ['mod'],
    33     Instance: ['instance'],
    34   });
    35   idl_array.test();
    36 }, 'wasm-js-api interfaces.');
    37 
     16    idl_array.add_objects({
     17      Memory: [new WebAssembly.Memory({initial: 1024})],
     18      Module: [self.mod],
     19      Instance: [self.instance],
     20    });
     21  }
     22);
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any.worker-expected.txt

    r260690 r269866  
    1 CONSOLE MESSAGE: NetworkError: Response is not 2xx
    21
    3 Harness Error (FAIL), message = NetworkError: Response is not 2xx
     2PASS idl_test setup
     3PASS idl_test validation
     4PASS WebAssembly namespace: extended attributes
     5PASS WebAssembly namespace: property descriptor
     6PASS WebAssembly namespace: [[Extensible]] is true
     7PASS WebAssembly namespace: [[Prototype]] is Object.prototype
     8PASS WebAssembly namespace: typeof is "object"
     9PASS WebAssembly namespace: operation validate(BufferSource)
     10PASS WebAssembly namespace: operation compile(BufferSource)
     11PASS WebAssembly namespace: operation instantiate(BufferSource, optional object)
     12PASS WebAssembly namespace: operation instantiate(Module, optional object)
     13PASS Module interface: existence and properties of interface object
     14PASS Module interface object length
     15PASS Module interface object name
     16PASS Module interface: existence and properties of interface prototype object
     17PASS Module interface: existence and properties of interface prototype object's "constructor" property
     18PASS Module interface: existence and properties of interface prototype object's @@unscopables property
     19PASS Module interface: operation exports(Module)
     20PASS Module interface: operation imports(Module)
     21PASS Module interface: operation customSections(Module, DOMString)
     22PASS Module must be primary interface of [object WebAssembly.Module]
     23PASS Stringification of [object WebAssembly.Module]
     24PASS Module interface: [object WebAssembly.Module] must inherit property "exports(Module)" with the proper type
     25PASS Module interface: calling exports(Module) on [object WebAssembly.Module] with too few arguments must throw TypeError
     26PASS Module interface: [object WebAssembly.Module] must inherit property "imports(Module)" with the proper type
     27PASS Module interface: calling imports(Module) on [object WebAssembly.Module] with too few arguments must throw TypeError
     28PASS Module interface: [object WebAssembly.Module] must inherit property "customSections(Module, DOMString)" with the proper type
     29PASS Module interface: calling customSections(Module, DOMString) on [object WebAssembly.Module] with too few arguments must throw TypeError
     30PASS Instance interface: existence and properties of interface object
     31PASS Instance interface object length
     32PASS Instance interface object name
     33PASS Instance interface: existence and properties of interface prototype object
     34PASS Instance interface: existence and properties of interface prototype object's "constructor" property
     35PASS Instance interface: existence and properties of interface prototype object's @@unscopables property
     36PASS Instance interface: attribute exports
     37PASS Instance must be primary interface of [object WebAssembly.Instance]
     38PASS Stringification of [object WebAssembly.Instance]
     39PASS Instance interface: [object WebAssembly.Instance] must inherit property "exports" with the proper type
     40PASS Memory interface: existence and properties of interface object
     41PASS Memory interface object length
     42PASS Memory interface object name
     43PASS Memory interface: existence and properties of interface prototype object
     44PASS Memory interface: existence and properties of interface prototype object's "constructor" property
     45PASS Memory interface: existence and properties of interface prototype object's @@unscopables property
     46PASS Memory interface: operation grow(unsigned long)
     47PASS Memory interface: attribute buffer
     48PASS Memory must be primary interface of [object WebAssembly.Memory]
     49PASS Stringification of [object WebAssembly.Memory]
     50PASS Memory interface: [object WebAssembly.Memory] must inherit property "grow(unsigned long)" with the proper type
     51PASS Memory interface: calling grow(unsigned long) on [object WebAssembly.Memory] with too few arguments must throw TypeError
     52PASS Memory interface: [object WebAssembly.Memory] must inherit property "buffer" with the proper type
     53PASS Table interface: existence and properties of interface object
     54PASS Table interface object length
     55PASS Table interface object name
     56PASS Table interface: existence and properties of interface prototype object
     57PASS Table interface: existence and properties of interface prototype object's "constructor" property
     58PASS Table interface: existence and properties of interface prototype object's @@unscopables property
     59PASS Table interface: operation grow(unsigned long)
     60PASS Table interface: operation get(unsigned long)
     61PASS Table interface: operation set(unsigned long, Function?)
     62PASS Table interface: attribute length
     63PASS Global interface: existence and properties of interface object
     64PASS Global interface object length
     65PASS Global interface object name
     66PASS Global interface: existence and properties of interface prototype object
     67PASS Global interface: existence and properties of interface prototype object's "constructor" property
     68PASS Global interface: existence and properties of interface prototype object's @@unscopables property
     69PASS Global interface: operation valueOf()
     70PASS Global interface: attribute value
    471
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/instance/constructor-bad-imports.any-expected.txt

    r267649 r269866  
     1CONSOLE MESSAGE: TypeError: WebAssembly.Global does not accept i64 initial value
     2
     3Harness Error (FAIL), message = TypeError: WebAssembly.Global does not accept i64 initial value
    14
    25PASS new WebAssembly.Instance(module): Non-object imports argument: null
     
    1922PASS new WebAssembly.Instance(module): Imports argument with missing property: empty object
    2023PASS new WebAssembly.Instance(module): Imports argument with missing property: wrong property
    21 PASS new WebAssembly.Instance(module): Importing an i64 global
    2224PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: undefined
    2325PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: null
     
    2931PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: NaN
    3032PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: object "[object Object]"
    31 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: undefined
    32 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: null
    33 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: true
    34 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: ""
    35 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: symbol "Symbol()"
    36 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: plain object
    37 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: WebAssembly.Global
    38 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: WebAssembly.Global.prototype
    39 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
    40 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
    41 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: undefined
    42 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: null
    43 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: true
    44 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: ""
    45 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: symbol "Symbol()"
    46 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: 1
    47 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: 0.1
    48 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: NaN
    49 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: plain object
    50 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory
    51 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory.prototype
    52 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: Object.create(WebAssembly.Memory.prototype)
    53 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory object (too large)
    54 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: undefined
    55 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: null
    56 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: true
    57 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: ""
    58 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: symbol "Symbol()"
    59 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: 1
    60 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: 0.1
    61 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: NaN
    62 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: plain object
    63 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: WebAssembly.Table
    64 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: WebAssembly.Table.prototype
    65 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: Object.create(WebAssembly.Table.prototype)
    66 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: WebAssembly.Table object (too large)
     33PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: undefined
     34PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: null
     35PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: true
     36PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: ""
     37PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: symbol "Symbol()"
     38PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: plain object
     39PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global
     40PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global.prototype
     41PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     42PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: BigInt
     43PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     44PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: undefined
     45PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: null
     46PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: true
     47PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: ""
     48PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: symbol "Symbol()"
     49PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: plain object
     50PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global
     51PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global.prototype
     52PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     53PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: Number
     54PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     55PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: undefined
     56PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: null
     57PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: true
     58PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: ""
     59PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: symbol "Symbol()"
     60PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: plain object
     61PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global
     62PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global.prototype
     63PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     64PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: BigInt
     65PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     66PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: undefined
     67PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: null
     68PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: true
     69PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: ""
     70PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: symbol "Symbol()"
     71PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: plain object
     72PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global
     73PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global.prototype
     74PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     75PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: BigInt
     76PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     77PASS new WebAssembly.Instance(module): Importing an i32 mutable global with a primitive value
     78PASS new WebAssembly.Instance(module): Importing an i32 mutable global with an immutable Global object
     79PASS new WebAssembly.Instance(module): Importing an i64 mutable global with a primitive value
    6780
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/instance/constructor-bad-imports.any.worker-expected.txt

    r267649 r269866  
     1CONSOLE MESSAGE: TypeError: WebAssembly.Global does not accept i64 initial value
     2
     3Harness Error (FAIL), message = TypeError: WebAssembly.Global does not accept i64 initial value
    14
    25PASS new WebAssembly.Instance(module): Non-object imports argument: null
     
    1922PASS new WebAssembly.Instance(module): Imports argument with missing property: empty object
    2023PASS new WebAssembly.Instance(module): Imports argument with missing property: wrong property
    21 PASS new WebAssembly.Instance(module): Importing an i64 global
    2224PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: undefined
    2325PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: null
     
    2931PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: NaN
    3032PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: object "[object Object]"
    31 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: undefined
    32 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: null
    33 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: true
    34 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: ""
    35 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: symbol "Symbol()"
    36 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: plain object
    37 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: WebAssembly.Global
    38 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: WebAssembly.Global.prototype
    39 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
    40 PASS new WebAssembly.Instance(module): Importing a global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
    41 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: undefined
    42 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: null
    43 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: true
    44 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: ""
    45 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: symbol "Symbol()"
    46 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: 1
    47 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: 0.1
    48 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: NaN
    49 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: plain object
    50 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory
    51 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory.prototype
    52 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: Object.create(WebAssembly.Memory.prototype)
    53 PASS new WebAssembly.Instance(module): Importing memory with an incorrectly-typed value: WebAssembly.Memory object (too large)
    54 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: undefined
    55 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: null
    56 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: true
    57 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: ""
    58 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: symbol "Symbol()"
    59 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: 1
    60 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: 0.1
    61 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: NaN
    62 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: plain object
    63 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: WebAssembly.Table
    64 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: WebAssembly.Table.prototype
    65 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: Object.create(WebAssembly.Table.prototype)
    66 PASS new WebAssembly.Instance(module): Importing table with an incorrectly-typed value: WebAssembly.Table object (too large)
     33PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: undefined
     34PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: null
     35PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: true
     36PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: ""
     37PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: symbol "Symbol()"
     38PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: plain object
     39PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global
     40PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global.prototype
     41PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     42PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: BigInt
     43PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     44PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: undefined
     45PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: null
     46PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: true
     47PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: ""
     48PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: symbol "Symbol()"
     49PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: plain object
     50PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global
     51PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global.prototype
     52PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     53PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: Number
     54PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     55PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: undefined
     56PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: null
     57PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: true
     58PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: ""
     59PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: symbol "Symbol()"
     60PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: plain object
     61PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global
     62PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global.prototype
     63PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     64PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: BigInt
     65PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     66PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: undefined
     67PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: null
     68PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: true
     69PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: ""
     70PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: symbol "Symbol()"
     71PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: plain object
     72PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global
     73PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global.prototype
     74PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype)
     75PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: BigInt
     76PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type)
     77PASS new WebAssembly.Instance(module): Importing an i32 mutable global with a primitive value
     78PASS new WebAssembly.Instance(module): Importing an i32 mutable global with an immutable Global object
     79PASS new WebAssembly.Instance(module): Importing an i64 mutable global with a primitive value
    6780
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/instance/constructor.any-expected.txt

    r267649 r269866  
    1212FAIL No imports assert_array_equals: matching export keys expected property 2 to be "table" but got "global" (expected array ["fn", "fn2", "table", "global", "global2", "memory"] got ["fn", "fn2", "global", "global2", "memory", "table"])
    1313FAIL exports and imports assert_false: fn: writable expected false got true
     14FAIL i64 exports and imports imported global module:global cannot be an i64 (evaluating 'new WebAssembly.Instance(module, ...args)')
     15FAIL import with i32-returning function assert_false: fn2: writable expected false got true
     16FAIL import with function that takes and returns i32 assert_false: fn2: writable expected false got true
     17FAIL import with i64-returning function assert_false: fn2: writable expected false got true
     18FAIL import with function that takes and returns i64 assert_false: fn2: writable expected false got true
     19FAIL import with i32-taking function assert_false: fn: writable expected false got true
     20FAIL import with i64-taking function assert_false: fn: writable expected false got true
     21FAIL export i64-returning function assert_false: fn: writable expected false got true
     22FAIL i32 mutable WebAssembly.Global import assert_false: fn: writable expected false got true
     23FAIL i64 mutable WebAssembly.Global import WebAssembly.Global does not accept i64 initial value
     24FAIL Multiple i64 arguments assert_false: fn: writable expected false got true
    1425PASS stray argument
    1526
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/instance/constructor.any.worker-expected.txt

    r267649 r269866  
    1212FAIL No imports assert_array_equals: matching export keys expected property 2 to be "table" but got "global" (expected array ["fn", "fn2", "table", "global", "global2", "memory"] got ["fn", "fn2", "global", "global2", "memory", "table"])
    1313FAIL exports and imports assert_false: fn: writable expected false got true
     14FAIL i64 exports and imports imported global module:global cannot be an i64 (evaluating 'new WebAssembly.Instance(module, ...args)')
     15FAIL import with i32-returning function assert_false: fn2: writable expected false got true
     16FAIL import with function that takes and returns i32 assert_false: fn2: writable expected false got true
     17FAIL import with i64-returning function assert_false: fn2: writable expected false got true
     18FAIL import with function that takes and returns i64 assert_false: fn2: writable expected false got true
     19FAIL import with i32-taking function assert_false: fn: writable expected false got true
     20FAIL import with i64-taking function assert_false: fn: writable expected false got true
     21FAIL export i64-returning function assert_false: fn: writable expected false got true
     22FAIL i32 mutable WebAssembly.Global import assert_false: fn: writable expected false got true
     23FAIL i64 mutable WebAssembly.Global import WebAssembly.Global does not accept i64 initial value
     24FAIL Multiple i64 arguments assert_false: fn: writable expected false got true
    1425PASS stray argument
    1526
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/instanceTestFactory.js

    r260690 r269866  
    212212
    213213  [
     214    "i64 exports and imports",
     215    function() {
     216      const value = 102n;
     217
     218      const builder = new WasmModuleBuilder();
     219
     220      const index = builder.addImportedGlobal("module", "global", kWasmI64);
     221      builder
     222        .addFunction("fn", kSig_l_v)
     223        .addBody([
     224            kExprGlobalGet,
     225            index,
     226            kExprReturn,
     227        ])
     228        .exportFunc();
     229
     230      const index2 = builder.addImportedGlobal("module", "global2", kWasmI64);
     231      builder.addExportOfKind("global", kExternalGlobal, index2);
     232
     233      const buffer = builder.toBuffer();
     234
     235      const imports = {
     236        "module": {
     237          "global": value,
     238          "global2": 2n ** 63n,
     239        },
     240      };
     241
     242      const exports = {
     243        "fn": { "kind": "function", "name": "0", "length": 0 },
     244        "global": { "kind": "global", "value": -(2n ** 63n) },
     245      };
     246
     247      return {
     248        buffer,
     249        args: [imports],
     250        exports,
     251        verify: instance => assert_equals(instance.exports.fn(), value)
     252      };
     253    }
     254  ],
     255
     256  [
     257    "import with i32-returning function",
     258    function() {
     259      const builder = new WasmModuleBuilder();
     260
     261      const fnIndex = builder.addImport("module", "fn", kSig_i_v);
     262      const fn2 = builder
     263        .addFunction("fn2", kSig_v_v)
     264        .addBody([
     265            kExprCallFunction,
     266            fnIndex,
     267            kExprReturn,
     268        ])
     269        .exportFunc();
     270
     271      const buffer = builder.toBuffer();
     272
     273      let called = false;
     274      const imports = {
     275        "module": {
     276          "fn": function() {
     277            called = true;
     278            return 6n;
     279          },
     280        },
     281      };
     282
     283      return {
     284        buffer,
     285        args: [imports],
     286        exports: {
     287          "fn2": { "kind": "function", "name": String(fn2.index), "length": 0 },
     288        },
     289        verify: instance => {
     290          assert_throws_js(TypeError, () => instance.exports.fn2());
     291          assert_true(called, "Should have called into JS");
     292        }
     293      };
     294    }
     295  ],
     296
     297  [
     298    "import with function that takes and returns i32",
     299    function() {
     300      const builder = new WasmModuleBuilder();
     301
     302      const fnIndex = builder.addImport("module", "fn", kSig_i_i);
     303      const fn2 = builder
     304        .addFunction("fn2", kSig_i_v)
     305        .addBody([
     306            kExprI32Const, 0x66,
     307            kExprCallFunction,
     308            fnIndex,
     309            kExprReturn,
     310        ])
     311        .exportFunc();
     312
     313      const buffer = builder.toBuffer();
     314
     315      let called = false;
     316      const imports = {
     317        "module": {
     318          "fn": function(n) {
     319            called = true;
     320            assert_equals(n, -26);
     321            return { valueOf() { return 6; } };
     322          },
     323        },
     324      };
     325
     326      return {
     327        buffer,
     328        args: [imports],
     329        exports: {
     330          "fn2": { "kind": "function", "name": String(fn2.index), "length": 0 },
     331        },
     332        verify: instance => {
     333          assert_equals(instance.exports.fn2(), 6);
     334          assert_true(called, "Should have called into JS");
     335        }
     336      };
     337    }
     338  ],
     339
     340  [
     341    "import with i64-returning function",
     342    function() {
     343      const builder = new WasmModuleBuilder();
     344
     345      const fnIndex = builder.addImport("module", "fn", kSig_l_v);
     346      const fn2 = builder
     347        .addFunction("fn2", kSig_v_v)
     348        .addBody([
     349            kExprCallFunction,
     350            fnIndex,
     351            kExprReturn,
     352        ])
     353        .exportFunc();
     354
     355      const buffer = builder.toBuffer();
     356
     357      let called = false;
     358      const imports = {
     359        "module": {
     360          "fn": function() {
     361            called = true;
     362            return 6;
     363          },
     364        },
     365      };
     366
     367      return {
     368        buffer,
     369        args: [imports],
     370        exports: {
     371          "fn2": { "kind": "function", "name": String(fn2.index), "length": 0 },
     372        },
     373        verify: instance => {
     374          assert_throws_js(TypeError, () => instance.exports.fn2());
     375          assert_true(called, "Should have called into JS");
     376        }
     377      };
     378    }
     379  ],
     380
     381  [
     382    "import with function that takes and returns i64",
     383    function() {
     384      const builder = new WasmModuleBuilder();
     385
     386      const fnIndex = builder.addImport("module", "fn", kSig_l_l);
     387      const fn2 = builder
     388        .addFunction("fn2", kSig_l_v)
     389        .addBody([
     390            kExprI64Const, 0x66,
     391            kExprCallFunction,
     392            fnIndex,
     393            kExprReturn,
     394        ])
     395        .exportFunc();
     396
     397      const buffer = builder.toBuffer();
     398
     399      let called = false;
     400      const imports = {
     401        "module": {
     402          "fn": function(n) {
     403            called = true;
     404            assert_equals(n, -26n);
     405            return { valueOf() { return 6n; } };
     406          },
     407        },
     408      };
     409
     410      return {
     411        buffer,
     412        args: [imports],
     413        exports: {
     414          "fn2": { "kind": "function", "name": String(fn2.index), "length": 0 },
     415        },
     416        verify: instance => {
     417          assert_equals(instance.exports.fn2(), 6n);
     418          assert_true(called, "Should have called into JS");
     419        }
     420      };
     421    }
     422  ],
     423
     424  [
     425    "import with i32-taking function",
     426    function() {
     427      const builder = new WasmModuleBuilder();
     428
     429      const fn = builder
     430        .addFunction("fn", kSig_v_i)
     431        .addBody([
     432            kExprReturn,
     433        ])
     434        .exportFunc();
     435
     436      const buffer = builder.toBuffer();
     437
     438      return {
     439        buffer,
     440        args: [],
     441        exports: {
     442          "fn": { "kind": "function", "name": String(fn.index), "length": 1 },
     443        },
     444        verify: instance => assert_throws_js(TypeError, () => instance.exports.fn(6n))
     445      };
     446    }
     447  ],
     448
     449  [
     450    "import with i64-taking function",
     451    function() {
     452      const builder = new WasmModuleBuilder();
     453
     454      const fn = builder
     455        .addFunction("fn", kSig_v_l)
     456        .addBody([
     457            kExprReturn,
     458        ])
     459        .exportFunc();
     460
     461      const buffer = builder.toBuffer();
     462
     463      return {
     464        buffer,
     465        args: [],
     466        exports: {
     467          "fn": { "kind": "function", "name": String(fn.index), "length": 1 },
     468        },
     469        verify: instance => assert_throws_js(TypeError, () => instance.exports.fn(6))
     470      };
     471    }
     472  ],
     473
     474  [
     475    "export i64-returning function",
     476    function() {
     477      const builder = new WasmModuleBuilder();
     478
     479      const fn = builder
     480        .addFunction("fn", kSig_l_v)
     481        .addBody([
     482            kExprI64Const, 0x66,
     483            kExprReturn,
     484        ])
     485        .exportFunc();
     486
     487      const buffer = builder.toBuffer();
     488
     489      return {
     490        buffer,
     491        args: [],
     492        exports: {
     493          "fn": { "kind": "function", "name": String(fn.index), "length": 0 },
     494        },
     495        verify: instance => assert_equals(instance.exports.fn(), -26n)
     496      };
     497    }
     498  ],
     499
     500  [
     501    "i32 mutable WebAssembly.Global import",
     502    function() {
     503      const initial = 102;
     504      const value = new WebAssembly.Global({ "value": "i32", "mutable": true }, initial);
     505
     506      const builder = new WasmModuleBuilder();
     507
     508      const index = builder.addImportedGlobal("module", "global", kWasmI32, true);
     509      const fn = builder
     510        .addFunction("fn", kSig_i_v)
     511        .addBody([
     512            kExprGlobalGet,
     513            index,
     514            kExprReturn,
     515        ])
     516        .exportFunc();
     517
     518      const buffer = builder.toBuffer();
     519
     520      const imports = {
     521        "module": {
     522          "global": value,
     523        },
     524      };
     525
     526      const exports = {
     527        "fn": { "kind": "function", "name": String(fn.index), "length": 0 },
     528      };
     529
     530      return {
     531        buffer,
     532        args: [imports],
     533        exports,
     534        verify: instance => {
     535          assert_equals(instance.exports.fn(), initial);
     536          const after = 201;
     537          value.value = after;
     538          assert_equals(instance.exports.fn(), after);
     539        }
     540      };
     541    }
     542  ],
     543
     544  [
     545    "i64 mutable WebAssembly.Global import",
     546    function() {
     547      const initial = 102n;
     548      const value = new WebAssembly.Global({ "value": "i64", "mutable": true }, initial);
     549
     550      const builder = new WasmModuleBuilder();
     551
     552      const index = builder.addImportedGlobal("module", "global", kWasmI64, true);
     553      const fn = builder
     554        .addFunction("fn", kSig_l_v)
     555        .addBody([
     556            kExprGlobalGet,
     557            index,
     558            kExprReturn,
     559        ])
     560        .exportFunc();
     561
     562      const buffer = builder.toBuffer();
     563
     564      const imports = {
     565        "module": {
     566          "global": value,
     567        },
     568      };
     569
     570      const exports = {
     571        "fn": { "kind": "function", "name": String(fn.index), "length": 0 },
     572      };
     573
     574      return {
     575        buffer,
     576        args: [imports],
     577        exports,
     578        verify: instance => {
     579          assert_equals(instance.exports.fn(), initial);
     580          const after = 201n;
     581          value.value = after;
     582          assert_equals(instance.exports.fn(), after);
     583        }
     584      };
     585    }
     586  ],
     587
     588  [
     589    "Multiple i64 arguments",
     590    function() {
     591      const builder = new WasmModuleBuilder();
     592
     593      const fn = builder
     594          .addFunction("fn", kSig_l_ll)
     595          .addBody([
     596              kExprLocalGet, 1,
     597          ])
     598          .exportFunc();
     599
     600      const buffer = builder.toBuffer();
     601
     602      const exports = {
     603        "fn": { "kind": "function", "name": String(fn.index), "length": 2 },
     604      };
     605
     606      return {
     607        buffer,
     608        args: [],
     609        exports,
     610        verify: instance => {
     611          const fn = instance.exports.fn;
     612          assert_equals(fn(1n, 0n), 0n);
     613          assert_equals(fn(1n, 123n), 123n);
     614          assert_equals(fn(1n, -123n), -123n);
     615          assert_equals(fn(1n, "5"), 5n);
     616          assert_throws_js(TypeError, () => fn(1n, 5));
     617        }
     618      };
     619    }
     620  ],
     621
     622  [
    214623    "stray argument",
    215624    function() {
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any-expected.txt

    r269531 r269866  
    1919PASS Out-of-range maximum value in descriptor: 68719476736
    2020PASS Initial value exceeds maximum
    21 FAIL Shared memory without maximum assert_throws_js: function "() => new WebAssembly.Memory({ "initial": 10, "shared": true })" did not throw
    2221PASS Proxy descriptor
    2322PASS Order of evaluation for descriptor
    24 FAIL Order of evaluation for descriptor (with shared) assert_array_equals: lengths differ, expected array ["initial", "initial valueOf", "maximum", "maximum valueOf", "shared"] length 5, got ["initial", "initial valueOf", "maximum", "maximum valueOf"] length 4
    2523PASS Zero initial
    2624PASS Non-zero initial
    2725FAIL Stray argument WebAssembly.Memory expects exactly one argument
    28 FAIL Shared memory assert_equals: prototype of buffer expected object "[object SharedArrayBuffer]" but got object "[object ArrayBuffer]"
    2926
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js

    r262312 r269866  
    11// META: global=window,dedicatedworker,jsshell
    22// META: script=/wasm/jsapi/assertions.js
    3 
    4 function assert_Memory(memory, expected) {
    5   assert_equals(Object.getPrototypeOf(memory), WebAssembly.Memory.prototype,
    6                 "prototype");
    7   assert_true(Object.isExtensible(memory), "extensible");
    8 
    9   // https://github.com/WebAssembly/spec/issues/840
    10   assert_equals(memory.buffer, memory.buffer, "buffer should be idempotent");
    11   const isShared = !!expected.shared;
    12   const bufferType = isShared ? self.SharedArrayBuffer : ArrayBuffer;
    13   assert_equals(Object.getPrototypeOf(memory.buffer), bufferType.prototype,
    14                 'prototype of buffer');
    15   assert_equals(memory.buffer.byteLength, 0x10000 * expected.size, "size of buffer");
    16   if (expected.size > 0) {
    17     const array = new Uint8Array(memory.buffer);
    18     assert_equals(array[0], 0, "first element of buffer");
    19     assert_equals(array[array.byteLength - 1], 0, "last element of buffer");
    20   }
    21   assert_equals(isShared, Object.isFrozen(memory.buffer), "buffer frozen");
    22   assert_not_equals(Object.isExtensible(memory.buffer), isShared, "buffer extensibility");
    23 }
     3// META: script=/wasm/jsapi/memory/assertions.js
    244
    255test(() => {
     
    8868
    8969test(() => {
    90   assert_throws_js(TypeError, () => new WebAssembly.Memory({ "initial": 10, "shared": true }));
    91 }, "Shared memory without maximum");
    92 
    93 test(() => {
    9470  const proxy = new Proxy({}, {
    9571    has(o, x) {
     
    9773    },
    9874    get(o, x) {
    99       return 0;
     75      // Due to the requirement not to supply both minimum and initial, we need to ignore one of them.
     76      switch (x) {
     77        case "shared":
     78          return false;
     79        case "initial":
     80        case "maximum":
     81          return 0;
     82        default:
     83          return undefined;
     84      }
    10085    },
    10186  });
     
    136121}, "Order of evaluation for descriptor");
    137122
    138 test(t => {
    139   const order = [];
    140 
    141   new WebAssembly.Memory({
    142     get maximum() {
    143       order.push("maximum");
    144       return {
    145         valueOf() {
    146           order.push("maximum valueOf");
    147           return 1;
    148         },
    149       };
    150     },
    151 
    152     get initial() {
    153       order.push("initial");
    154       return {
    155         valueOf() {
    156           order.push("initial valueOf");
    157           return 1;
    158         },
    159       };
    160     },
    161 
    162     get shared() {
    163       order.push("shared");
    164       return {
    165         valueOf: t.unreached_func("should not call shared valueOf"),
    166       };
    167     },
    168   });
    169 
    170   assert_array_equals(order, [
    171     "initial",
    172     "initial valueOf",
    173     "maximum",
    174     "maximum valueOf",
    175     "shared",
    176   ]);
    177 }, "Order of evaluation for descriptor (with shared)");
    178 
    179123test(() => {
    180124  const argument = { "initial": 0 };
     
    194138  assert_Memory(memory, { "size": 0 });
    195139}, "Stray argument");
    196 
    197 test(() => {
    198   const argument = { "initial": 4, "maximum": 10, shared: true };
    199   const memory = new WebAssembly.Memory(argument);
    200   assert_Memory(memory, { "size": 4, "shared": true });
    201 }, "Shared memory");
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.worker-expected.txt

    r269531 r269866  
    1919PASS Out-of-range maximum value in descriptor: 68719476736
    2020PASS Initial value exceeds maximum
    21 FAIL Shared memory without maximum assert_throws_js: function "() => new WebAssembly.Memory({ "initial": 10, "shared": true })" did not throw
    2221PASS Proxy descriptor
    2322PASS Order of evaluation for descriptor
    24 FAIL Order of evaluation for descriptor (with shared) assert_array_equals: lengths differ, expected array ["initial", "initial valueOf", "maximum", "maximum valueOf", "shared"] length 5, got ["initial", "initial valueOf", "maximum", "maximum valueOf"] length 4
    2523PASS Zero initial
    2624PASS Non-zero initial
    2725FAIL Stray argument WebAssembly.Memory expects exactly one argument
    28 FAIL Shared memory assert_equals: prototype of buffer expected object "[object SharedArrayBuffer]" but got object "[object ArrayBuffer]"
    2926
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js

    r262312 r269866  
    11// META: global=window,dedicatedworker,jsshell
    2 
    3 function assert_ArrayBuffer(actual, { size=0, shared=false, detached=false }, message) {
    4   // https://github.com/WebAssembly/spec/issues/840
    5   // See https://github.com/whatwg/html/issues/5380 for why not `self.SharedArrayBuffer`
    6   const isShared = !("isView" in actual.constructor);
    7   assert_equals(isShared, shared, `${message}: constructor`);
    8   const sharedString = shared ? "Shared" : "";
    9   assert_equals(actual.toString(), `[object ${sharedString}ArrayBuffer]`, `${message}: toString()`);
    10   assert_equals(Object.getPrototypeOf(actual).toString(), `[object ${sharedString}ArrayBuffer]`, `${message}: prototype toString()`);
    11   if (detached) {
    12     // https://github.com/tc39/ecma262/issues/678
    13     let byteLength;
    14     try {
    15       byteLength = actual.byteLength;
    16     } catch (e) {
    17       byteLength = 0;
    18     }
    19     assert_equals(byteLength, 0, `${message}: detached size`);
    20   } else {
    21     assert_equals(actual.byteLength, 0x10000 * size, `${message}: size`);
    22     if (size > 0) {
    23       const array = new Uint8Array(actual);
    24       assert_equals(array[0], 0, `${message}: first element`);
    25       assert_equals(array[array.byteLength - 1], 0, `${message}: last element`);
    26     }
    27   }
    28 }
     2// META: script=/wasm/jsapi/memory/assertions.js
    293
    304test(() => {
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log

    r247457 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/assertions.js
    1718/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
     19/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor-shared.tentative.any.js
     20/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor-types.tentative.any.js
    1821/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    1922/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/assertions.js

    r260690 r269866  
    1212                   `${message}: table.get(${expected.length + 1} of ${expected.length})`);
    1313}
     14
     15function assert_Table(actual, expected) {
     16  assert_equals(Object.getPrototypeOf(actual), WebAssembly.Table.prototype,
     17                "prototype");
     18  assert_true(Object.isExtensible(actual), "extensible");
     19
     20  assert_equals(actual.length, expected.length, "length");
     21  for (let i = 0; i < expected.length; ++i) {
     22    assert_equals(actual.get(i), null, `actual.get(${i})`);
     23  }
     24}
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any.js

    r262312 r269866  
    11// META: global=window,dedicatedworker,jsshell
    22// META: script=/wasm/jsapi/assertions.js
    3 
    4 function assert_Table(actual, expected) {
    5   assert_equals(Object.getPrototypeOf(actual), WebAssembly.Table.prototype,
    6                 "prototype");
    7   assert_true(Object.isExtensible(actual), "extensible");
    8 
    9   assert_equals(actual.length, expected.length, "length");
    10   for (let i = 0; i < expected.length; ++i) {
    11     assert_equals(actual.get(i), null, `actual.get(${i})`);
    12   }
    13 }
     3// META: script=/wasm/jsapi/table/assertions.js
    144
    155test(() => {
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/w3c-import.log

    r260690 r269866  
    1616List of files:
    1717/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/assertions.js
     18/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor-types.tentative.any.js
    1819/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any.js
    1920/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/get-set.any.js
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/w3c-import.log

    r260690 r269866  
    2222/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/interface.any.js
    2323/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/proto-from-ctor-realm.html
     24/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/prototypes.any.js
    2425/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/wasm-module-builder.js
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/wasm-module-builder.js

    r269552 r269866  
    44
    55// Used for encoding f32 and double constants to bits.
    6 let f32_view = new Float32Array(1);
    7 let f32_bytes_view = new Uint8Array(f32_view.buffer);
    8 let f64_view = new Float64Array(1);
    9 let f64_bytes_view = new Uint8Array(f64_view.buffer);
     6let byte_view = new Uint8Array(8);
     7let data_view = new DataView(byte_view.buffer);
    108
    119// The bytes function receives one of
     
    10098let kWasmF64 = 0x7c;
    10199let kWasmS128 = 0x7b;
    102 let kWasmExternRef = 0x6f;
     100let kWasmAnyRef = 0x6f;
    103101let kWasmAnyFunc = 0x70;
    104102let kWasmExnRef = 0x68;
     
    150148let kSig_f_d = makeSig([kWasmF64], [kWasmF32]);
    151149let kSig_d_d = makeSig([kWasmF64], [kWasmF64]);
    152 let kSig_r_r = makeSig([kWasmExternRef], [kWasmExternRef]);
     150let kSig_r_r = makeSig([kWasmAnyRef], [kWasmAnyRef]);
    153151let kSig_a_a = makeSig([kWasmAnyFunc], [kWasmAnyFunc]);
    154152let kSig_e_e = makeSig([kWasmExnRef], [kWasmExnRef]);
    155 let kSig_i_r = makeSig([kWasmExternRef], [kWasmI32]);
    156 let kSig_v_r = makeSig([kWasmExternRef], []);
     153let kSig_i_r = makeSig([kWasmAnyRef], [kWasmI32]);
     154let kSig_v_r = makeSig([kWasmAnyRef], []);
    157155let kSig_v_a = makeSig([kWasmAnyFunc], []);
    158156let kSig_v_e = makeSig([kWasmExnRef], []);
    159 let kSig_v_rr = makeSig([kWasmExternRef, kWasmExternRef], []);
     157let kSig_v_rr = makeSig([kWasmAnyRef, kWasmAnyRef], []);
    160158let kSig_v_aa = makeSig([kWasmAnyFunc, kWasmAnyFunc], []);
    161 let kSig_r_v = makeSig([], [kWasmExternRef]);
     159let kSig_r_v = makeSig([], [kWasmAnyRef]);
    162160let kSig_a_v = makeSig([], [kWasmAnyFunc]);
    163161let kSig_a_i = makeSig([kWasmI32], [kWasmAnyFunc]);
     
    749747
    750748  addTable(type, initial_size, max_size = undefined) {
    751     if (type != kWasmExternRef && type != kWasmAnyFunc && type != kWasmExnRef) {
     749    if (type != kWasmAnyRef && type != kWasmAnyFunc && type != kWasmExnRef) {
    752750      throw new Error(
    753           'Tables must be of type kWasmExternRef, kWasmAnyFunc, or kWasmExnRef');
     751          'Tables must be of type kWasmAnyRef, kWasmAnyFunc, or kWasmExnRef');
    754752    }
    755753    let table = new WasmTableBuilder(this, type, initial_size, max_size);
     
    10181016              break;
    10191017            case kWasmF32:
    1020               section.emit_u8(kExprF32Const);
    1021               f32_view[0] = global.init;
    1022               section.emit_bytes(f32_bytes_view);
     1018              section.emit_bytes(wasmF32Const(global.init));
    10231019              break;
    10241020            case kWasmF64:
    1025               section.emit_u8(kExprF64Const);
    1026               f64_view[0] = global.init;
    1027               section.emit_bytes(f64_bytes_view);
     1021              section.emit_bytes(wasmF64Const(global.init));
    10281022              break;
    10291023            case kWasmAnyFunc:
    1030             case kWasmExternRef:
     1024            case kWasmAnyRef:
    10311025              if (global.function_index !== undefined) {
    10321026                section.emit_u8(kExprRefFunc);
     
    11741168              local_decls.push({count: l.s128_count, type: kWasmS128});
    11751169            }
    1176             if (l.externref_count > 0) {
    1177               local_decls.push({count: l.externref_count, type: kWasmExternRef});
     1170            if (l.anyref_count > 0) {
     1171              local_decls.push({count: l.anyref_count, type: kWasmAnyRef});
    11781172            }
    11791173            if (l.anyfunc_count > 0) {
     
    13231317
    13241318function wasmF32Const(f) {
    1325   f32_view[0] = f;
     1319  // Write in little-endian order at offset 0.
     1320  data_view.setFloat32(0, f, true);
    13261321  return [
    1327     kExprF32Const, f32_bytes_view[0], f32_bytes_view[1], f32_bytes_view[2],
    1328     f32_bytes_view[3]
     1322    kExprF32Const, byte_view[0], byte_view[1], byte_view[2], byte_view[3]
    13291323  ];
    13301324}
    13311325
    13321326function wasmF64Const(f) {
    1333   f64_view[0] = f;
     1327  // Write in little-endian order at offset 0.
     1328  data_view.setFloat64(0, f, true);
    13341329  return [
    1335     kExprF64Const, f64_bytes_view[0], f64_bytes_view[1], f64_bytes_view[2],
    1336     f64_bytes_view[3], f64_bytes_view[4], f64_bytes_view[5], f64_bytes_view[6],
    1337     f64_bytes_view[7]
     1330    kExprF64Const, byte_view[0], byte_view[1], byte_view[2],
     1331    byte_view[3], byte_view[4], byte_view[5], byte_view[6], byte_view[7]
    13381332  ];
    13391333}
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/resources/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/resources/load_wasm.js
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/serialization/arraybuffer/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/serialization/arraybuffer/transfer.window.js
  • trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/w3c-import.log

    r269865 r269866  
    1515------------------------------------------------------------------------
    1616List of files:
    17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/buffer.any.js
    18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
    19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
    20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/toString.any.js
     17/LayoutTests/imported/w3c/web-platform-tests/wasm/META.yml
     18/LayoutTests/imported/w3c/web-platform-tests/wasm/compile_worker.js
     19/LayoutTests/imported/w3c/web-platform-tests/wasm/create_multiple_memory.worker.js
     20/LayoutTests/imported/w3c/web-platform-tests/wasm/incrementer.wasm
  • trunk/LayoutTests/platform/mac-wk1/TestExpectations

    r269785 r269866  
    351351imported/w3c/web-platform-tests/IndexedDB/key-generators/reading-autoincrement-store.any.serviceworker.html [ Skip ]
    352352imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.serviceworker.html [ Skip ]
     353imported/w3c/web-platform-tests/wasm/serialization/module/window-serviceworker-failure.https.html [ Skip ]
    353354
    354355# Quota check missing in WK1
Note: See TracChangeset for help on using the changeset viewer.