Changeset 269866 in webkit
- Timestamp:
- Nov 16, 2020 11:46:50 AM (3 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 193 added
- 35 edited
- 12 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r269854 r269866 1 2020-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 1 11 2020-11-16 Sam Weinig <weinig@apple.com> 2 12 -
trunk/LayoutTests/TestExpectations
r269810 r269866 380 380 imported/w3c/web-platform-tests/streams/writable-streams/write.any.html [ DumpJSConsoleLogInStdErr ] 381 381 imported/w3c/web-platform-tests/streams/writable-streams/error.any.html [ DumpJSConsoleLogInStdErr ] 382 imported/w3c/web-platform-tests/wasm/webapi/rejected-arg.any.html [ DumpJSConsoleLogInStdErr ] 382 383 imported/w3c/web-platform-tests/workers/WorkerGlobalScope_ErrorEvent_lineno.htm [ DumpJSConsoleLogInStdErr ] 383 384 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/test-analyser-minimum.html [ DumpJSConsoleLogInStdErr ] -
trunk/LayoutTests/imported/w3c/ChangeLog
r269853 r269866 1 2020-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 1 312 2020-11-16 Chris Dumez <cdumez@apple.com> 2 313 -
trunk/LayoutTests/imported/w3c/resources/import-expectations.json
r269679 r269866 418 418 "web-platform-tests/visual-viewport": "import", 419 419 "web-platform-tests/wai-aria": "skip", 420 "web-platform-tests/wasm": " skip",420 "web-platform-tests/wasm": "import", 421 421 "web-platform-tests/wasm/jsapi": "import", 422 422 "web-platform-tests/web-animations": "import", -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/bad-imports.js
r260690 r269866 12 12 */ 13 13 function 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 14 24 for (const value of [null, true, "", Symbol(), 1, 0.1, NaN]) { 15 25 t(`Non-object imports argument: ${format_value(value)}`, … … 46 56 } 47 57 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 59 58 for (const value of [undefined, null, true, "", Symbol(), 1, 0.1, NaN, {}]) { 60 59 t(`Importing a function with an incorrectly-typed value: ${format_value(value)}`, … … 80 79 [WebAssembly.Global.prototype, "WebAssembly.Global.prototype"], 81 80 [Object.create(WebAssembly.Global.prototype), "Object.create(WebAssembly.Global.prototype)"], 82 [new WebAssembly.Global({value: "f32"}), "WebAssembly.Global object (wrong value type)"],83 81 ]; 84 82 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`, 87 105 WebAssembly.LinkError, 88 106 builder => { 89 builder.addImportedGlobal("module", "global", kWasmI32);107 builder.addImportedGlobal("module", "global", value_type(type), true); 90 108 }, 91 109 { 92 110 "module": { 93 111 "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, 94 124 }, 95 125 }); -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/instantiate-bad-imports.any-expected.txt
r267649 r269866 1 CONSOLE MESSAGE: TypeError: WebAssembly.Global does not accept i64 initial value 2 3 Harness Error (FAIL), message = TypeError: WebAssembly.Global does not accept i64 initial value 1 4 2 5 PASS WebAssembly.instantiate(module): Non-object imports argument: null … … 19 22 PASS WebAssembly.instantiate(module): Imports argument with missing property: empty object 20 23 PASS WebAssembly.instantiate(module): Imports argument with missing property: wrong property 21 PASS WebAssembly.instantiate(module): Importing an i64 global22 24 PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: undefined 23 25 PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: null … … 29 31 PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: NaN 30 32 PASS 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) 33 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: undefined 34 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: null 35 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: true 36 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: "" 37 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: symbol "Symbol()" 38 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: plain object 39 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global 40 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global.prototype 41 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 42 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: BigInt 43 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 44 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: undefined 45 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: null 46 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: true 47 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: "" 48 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: symbol "Symbol()" 49 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: plain object 50 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global 51 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global.prototype 52 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 53 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: Number 54 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 55 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: undefined 56 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: null 57 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: true 58 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: "" 59 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: symbol "Symbol()" 60 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: plain object 61 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global 62 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global.prototype 63 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 64 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: BigInt 65 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 66 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: undefined 67 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: null 68 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: true 69 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: "" 70 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: symbol "Symbol()" 71 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: plain object 72 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global 73 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global.prototype 74 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 75 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: BigInt 76 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 77 PASS WebAssembly.instantiate(module): Importing an i32 mutable global with a primitive value 78 PASS WebAssembly.instantiate(module): Importing an i32 mutable global with an immutable Global object 79 PASS WebAssembly.instantiate(module): Importing an i64 mutable global with a primitive value 132 80 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/instantiate-bad-imports.any.worker-expected.txt
r267649 r269866 1 2 Harness Error (FAIL), message = Error in remote http://localhost:8800/wasm/jsapi/bad-imports.js: TypeError: WebAssembly.Global does not accept i64 initial value 1 3 2 4 PASS WebAssembly.instantiate(module): Non-object imports argument: null … … 19 21 PASS WebAssembly.instantiate(module): Imports argument with missing property: empty object 20 22 PASS WebAssembly.instantiate(module): Imports argument with missing property: wrong property 21 PASS WebAssembly.instantiate(module): Importing an i64 global22 23 PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: undefined 23 24 PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: null … … 29 30 PASS WebAssembly.instantiate(module): Importing a function with an incorrectly-typed value: NaN 30 31 PASS 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) 32 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: undefined 33 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: null 34 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: true 35 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: "" 36 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: symbol "Symbol()" 37 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: plain object 38 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global 39 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global.prototype 40 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 41 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: BigInt 42 PASS WebAssembly.instantiate(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 43 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: undefined 44 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: null 45 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: true 46 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: "" 47 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: symbol "Symbol()" 48 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: plain object 49 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global 50 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global.prototype 51 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 52 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: Number 53 PASS WebAssembly.instantiate(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 54 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: undefined 55 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: null 56 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: true 57 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: "" 58 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: symbol "Symbol()" 59 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: plain object 60 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global 61 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global.prototype 62 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 63 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: BigInt 64 PASS WebAssembly.instantiate(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 65 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: undefined 66 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: null 67 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: true 68 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: "" 69 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: symbol "Symbol()" 70 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: plain object 71 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global 72 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global.prototype 73 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 74 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: BigInt 75 PASS WebAssembly.instantiate(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 76 PASS WebAssembly.instantiate(module): Importing an i32 mutable global with a primitive value 77 PASS WebAssembly.instantiate(module): Importing an i32 mutable global with an immutable Global object 78 PASS WebAssembly.instantiate(module): Importing an i64 mutable global with a primitive value 132 79 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/instantiate.any-expected.txt
r267649 r269866 18 18 FAIL exports and imports: BufferSource argument assert_false: fn: writable expected false got true 19 19 FAIL exports and imports: Module argument assert_false: fn: writable expected false got true 20 FAIL i64 exports and imports: BufferSource argument promise_test: Unhandled rejection with value: object "LinkError: imported global module:global cannot be an i64" 21 FAIL i64 exports and imports: Module argument promise_test: Unhandled rejection with value: object "LinkError: imported global module:global cannot be an i64" 22 FAIL import with i32-returning function: BufferSource argument assert_false: fn2: writable expected false got true 23 FAIL import with i32-returning function: Module argument assert_false: fn2: writable expected false got true 24 FAIL import with function that takes and returns i32: BufferSource argument assert_false: fn2: writable expected false got true 25 FAIL import with function that takes and returns i32: Module argument assert_false: fn2: writable expected false got true 26 FAIL import with i64-returning function: BufferSource argument assert_false: fn2: writable expected false got true 27 FAIL import with i64-returning function: Module argument assert_false: fn2: writable expected false got true 28 FAIL import with function that takes and returns i64: BufferSource argument assert_false: fn2: writable expected false got true 29 FAIL import with function that takes and returns i64: Module argument assert_false: fn2: writable expected false got true 30 FAIL import with i32-taking function: BufferSource argument assert_false: fn: writable expected false got true 31 FAIL import with i32-taking function: Module argument assert_false: fn: writable expected false got true 32 FAIL import with i64-taking function: BufferSource argument assert_false: fn: writable expected false got true 33 FAIL import with i64-taking function: Module argument assert_false: fn: writable expected false got true 34 FAIL export i64-returning function: BufferSource argument assert_false: fn: writable expected false got true 35 FAIL export i64-returning function: Module argument assert_false: fn: writable expected false got true 36 FAIL i32 mutable WebAssembly.Global import: BufferSource argument assert_false: fn: writable expected false got true 37 FAIL i32 mutable WebAssembly.Global import: Module argument assert_false: fn: writable expected false got true 38 FAIL i64 mutable WebAssembly.Global import: BufferSource argument WebAssembly.Global does not accept i64 initial value 39 FAIL i64 mutable WebAssembly.Global import: Module argument WebAssembly.Global does not accept i64 initial value 40 FAIL Multiple i64 arguments: BufferSource argument assert_false: fn: writable expected false got true 41 FAIL Multiple i64 arguments: Module argument assert_false: fn: writable expected false got true 20 42 PASS stray argument: BufferSource argument 21 43 PASS stray argument: Module argument -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/instantiate.any.worker-expected.txt
r267649 r269866 18 18 FAIL exports and imports: BufferSource argument assert_false: fn: writable expected false got true 19 19 FAIL exports and imports: Module argument assert_false: fn: writable expected false got true 20 FAIL i64 exports and imports: BufferSource argument promise_test: Unhandled rejection with value: object "LinkError: imported global module:global cannot be an i64" 21 FAIL i64 exports and imports: Module argument promise_test: Unhandled rejection with value: object "LinkError: imported global module:global cannot be an i64" 22 FAIL import with i32-returning function: BufferSource argument assert_false: fn2: writable expected false got true 23 FAIL import with i32-returning function: Module argument assert_false: fn2: writable expected false got true 24 FAIL import with function that takes and returns i32: BufferSource argument assert_false: fn2: writable expected false got true 25 FAIL import with function that takes and returns i32: Module argument assert_false: fn2: writable expected false got true 26 FAIL import with i64-returning function: BufferSource argument assert_false: fn2: writable expected false got true 27 FAIL import with i64-returning function: Module argument assert_false: fn2: writable expected false got true 28 FAIL import with function that takes and returns i64: BufferSource argument assert_false: fn2: writable expected false got true 29 FAIL import with function that takes and returns i64: Module argument assert_false: fn2: writable expected false got true 30 FAIL import with i32-taking function: BufferSource argument assert_false: fn: writable expected false got true 31 FAIL import with i32-taking function: Module argument assert_false: fn: writable expected false got true 32 FAIL import with i64-taking function: BufferSource argument assert_false: fn: writable expected false got true 33 FAIL import with i64-taking function: Module argument assert_false: fn: writable expected false got true 34 FAIL export i64-returning function: BufferSource argument assert_false: fn: writable expected false got true 35 FAIL export i64-returning function: Module argument assert_false: fn: writable expected false got true 36 FAIL i32 mutable WebAssembly.Global import: BufferSource argument assert_false: fn: writable expected false got true 37 FAIL i32 mutable WebAssembly.Global import: Module argument assert_false: fn: writable expected false got true 38 FAIL i64 mutable WebAssembly.Global import: BufferSource argument WebAssembly.Global does not accept i64 initial value 39 FAIL i64 mutable WebAssembly.Global import: Module argument WebAssembly.Global does not accept i64 initial value 40 FAIL Multiple i64 arguments: BufferSource argument assert_false: fn: writable expected false got true 41 FAIL Multiple i64 arguments: Module argument assert_false: fn: writable expected false got true 20 42 PASS stray argument: BufferSource argument 21 43 PASS stray argument: Module argument -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/w3c-import.log
r260690 r269866 19 19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/constructor/instantiate.any.js 20 20 /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 21 22 /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 15 15 ------------------------------------------------------------------------ 16 16 List 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 15 15 ------------------------------------------------------------------------ 16 16 List 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 15 15 ------------------------------------------------------------------------ 16 16 List 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 15 15 ------------------------------------------------------------------------ 16 16 List 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 15 15 ------------------------------------------------------------------------ 16 16 List 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 15 15 ------------------------------------------------------------------------ 16 16 List 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 15 15 ------------------------------------------------------------------------ 16 16 List 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 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/ memory/buffer.any.js18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/ memory/constructor.any.js19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/ memory/grow.any.js20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/ memory/toString.any.js17 /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 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/ memory/buffer.any.js18 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/ memory/constructor.any.js19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/ memory/grow.any.js20 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/ memory/toString.any.js17 /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 7 7 PASS Invalid descriptor argument 8 8 PASS Invalid type argument 9 PASS i64 with default 9 FAIL i64 with default WebAssembly.Global.prototype.value does not work with i64 type 10 10 PASS Default value for type i32 11 11 PASS Explicit value undefined for type i32 … … 15 15 PASS Explicit value 2 for type i32 16 16 PASS 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 17 PASS Explicit value object with toString returning string for type i32 18 PASS Explicit value object with valueOf returning string for type i32 19 PASS Explicit value object with toString returning number for type i32 20 PASS Explicit value object with valueOf returning number for type i32 21 PASS BigInt value for type i32 19 22 PASS Default value for type f32 20 23 PASS Explicit value undefined for type f32 … … 24 27 PASS Explicit value 2 for type f32 25 28 PASS 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 29 PASS Explicit value object with toString returning string for type f32 30 PASS Explicit value object with valueOf returning string for type f32 31 PASS Explicit value object with toString returning number for type f32 32 PASS Explicit value object with valueOf returning number for type f32 33 PASS BigInt value for type f32 28 34 PASS Default value for type f64 29 35 PASS Explicit value undefined for type f64 … … 33 39 PASS Explicit value 2 for type f64 34 40 PASS 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 41 PASS Explicit value object with toString returning string for type f64 42 PASS Explicit value object with valueOf returning string for type f64 43 PASS Explicit value object with toString returning number for type f64 44 PASS Explicit value object with valueOf returning number for type f64 45 PASS BigInt value for type f64 46 FAIL Explicit value undefined for type i64 WebAssembly.Global.prototype.value does not work with i64 type 47 FAIL Explicit value true for type i64 WebAssembly.Global does not accept i64 initial value 48 FAIL Explicit value false for type i64 WebAssembly.Global does not accept i64 initial value 49 FAIL Explicit value "3" for type i64 WebAssembly.Global does not accept i64 initial value 50 FAIL Explicit value bigint "123" for type i64 WebAssembly.Global does not accept i64 initial value 51 FAIL Explicit value object with toString returning string for type i64 WebAssembly.Global does not accept i64 initial value 52 FAIL Explicit value object with valueOf returning string for type i64 WebAssembly.Global does not accept i64 initial value 53 FAIL Explicit value object with toString returning bigint for type i64 WebAssembly.Global does not accept i64 initial value 54 FAIL Explicit value object with valueOf returning bigint for type i64 WebAssembly.Global does not accept i64 initial value 55 PASS Pass non-bigint as i64 Global value: null 56 PASS Pass non-bigint as i64 Global value: 666 57 PASS Pass non-bigint as i64 Global value: object "5" 58 PASS Pass non-bigint as i64 Global value: object "[object Object]" 59 PASS Pass non-bigint as i64 Global value: symbol "Symbol()" 37 60 PASS Stray argument 38 61 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/constructor.any.js
r262312 r269866 91 91 const argument = { "value": "i64" }; 92 92 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); 95 94 }, "i64 with default"); 96 95 … … 109 108 [2, 2], 110 109 ["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"], 113 114 ]; 114 115 for (const [value, expected, name = format_value(value)] of valueArguments) { … … 119 120 }, `Explicit value ${name} for type ${type}`); 120 121 } 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 129 const 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 ]; 140 for (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 148 const invalidBigints = [ 149 null, 150 666, 151 { toString() { return 5 } }, 152 { valueOf() { return 8 } }, 153 Symbol(), 154 ]; 155 for (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)}`); 121 160 } 122 161 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/constructor.any.worker-expected.txt
r267649 r269866 7 7 PASS Invalid descriptor argument 8 8 PASS Invalid type argument 9 PASS i64 with default 9 FAIL i64 with default WebAssembly.Global.prototype.value does not work with i64 type 10 10 PASS Default value for type i32 11 11 PASS Explicit value undefined for type i32 … … 15 15 PASS Explicit value 2 for type i32 16 16 PASS 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 17 PASS Explicit value object with toString returning string for type i32 18 PASS Explicit value object with valueOf returning string for type i32 19 PASS Explicit value object with toString returning number for type i32 20 PASS Explicit value object with valueOf returning number for type i32 21 PASS BigInt value for type i32 19 22 PASS Default value for type f32 20 23 PASS Explicit value undefined for type f32 … … 24 27 PASS Explicit value 2 for type f32 25 28 PASS 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 29 PASS Explicit value object with toString returning string for type f32 30 PASS Explicit value object with valueOf returning string for type f32 31 PASS Explicit value object with toString returning number for type f32 32 PASS Explicit value object with valueOf returning number for type f32 33 PASS BigInt value for type f32 28 34 PASS Default value for type f64 29 35 PASS Explicit value undefined for type f64 … … 33 39 PASS Explicit value 2 for type f64 34 40 PASS 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 41 PASS Explicit value object with toString returning string for type f64 42 PASS Explicit value object with valueOf returning string for type f64 43 PASS Explicit value object with toString returning number for type f64 44 PASS Explicit value object with valueOf returning number for type f64 45 PASS BigInt value for type f64 46 FAIL Explicit value undefined for type i64 WebAssembly.Global.prototype.value does not work with i64 type 47 FAIL Explicit value true for type i64 WebAssembly.Global does not accept i64 initial value 48 FAIL Explicit value false for type i64 WebAssembly.Global does not accept i64 initial value 49 FAIL Explicit value "3" for type i64 WebAssembly.Global does not accept i64 initial value 50 FAIL Explicit value bigint "123" for type i64 WebAssembly.Global does not accept i64 initial value 51 FAIL Explicit value object with toString returning string for type i64 WebAssembly.Global does not accept i64 initial value 52 FAIL Explicit value object with valueOf returning string for type i64 WebAssembly.Global does not accept i64 initial value 53 FAIL Explicit value object with toString returning bigint for type i64 WebAssembly.Global does not accept i64 initial value 54 FAIL Explicit value object with valueOf returning bigint for type i64 WebAssembly.Global does not accept i64 initial value 55 PASS Pass non-bigint as i64 Global value: null 56 PASS Pass non-bigint as i64 Global value: 666 57 PASS Pass non-bigint as i64 Global value: object "5" 58 PASS Pass non-bigint as i64 Global value: object "[object Object]" 59 PASS Pass non-bigint as i64 Global value: symbol "Symbol()" 37 60 PASS Stray argument 38 61 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/value-get-set.any-expected.txt
r267649 r269866 17 17 PASS Mutable i32 (string) 18 18 PASS Mutable i32 (true on prototype) 19 FAIL Immutable i64 (missing) WebAssembly.Global.prototype.value does not work with i64 type 20 FAIL Immutable i64 with ToNumber side-effects (missing) WebAssembly.Global.prototype.value does not work with i64 type 21 FAIL Immutable i64 (undefined) WebAssembly.Global.prototype.value does not work with i64 type 22 FAIL Immutable i64 with ToNumber side-effects (undefined) WebAssembly.Global.prototype.value does not work with i64 type 23 FAIL Immutable i64 (null) WebAssembly.Global.prototype.value does not work with i64 type 24 FAIL Immutable i64 with ToNumber side-effects (null) WebAssembly.Global.prototype.value does not work with i64 type 25 FAIL Immutable i64 (false) WebAssembly.Global.prototype.value does not work with i64 type 26 FAIL Immutable i64 with ToNumber side-effects (false) WebAssembly.Global.prototype.value does not work with i64 type 27 FAIL Immutable i64 (empty string) WebAssembly.Global.prototype.value does not work with i64 type 28 FAIL Immutable i64 with ToNumber side-effects (empty string) WebAssembly.Global.prototype.value does not work with i64 type 29 FAIL Immutable i64 (zero) WebAssembly.Global.prototype.value does not work with i64 type 30 FAIL Immutable i64 with ToNumber side-effects (zero) WebAssembly.Global.prototype.value does not work with i64 type 31 FAIL Mutable i64 (true) WebAssembly.Global.prototype.value does not work with i64 type 32 FAIL Mutable i64 (one) WebAssembly.Global.prototype.value does not work with i64 type 33 FAIL Mutable i64 (string) WebAssembly.Global.prototype.value does not work with i64 type 34 FAIL Mutable i64 (true on prototype) WebAssembly.Global.prototype.value does not work with i64 type 19 35 PASS Immutable f32 (missing) 20 36 PASS Immutable f32 with ToNumber side-effects (missing) … … 49 65 PASS Mutable f64 (string) 50 66 PASS Mutable f64 (true on prototype) 51 PASS i64 with default 52 PASS i64 with ToNumber side-effects 67 FAIL i64 mutability WebAssembly.Global.prototype.value does not work with i64 type 53 68 PASS Calling setter without argument 54 69 PASS Stray argument -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/value-get-set.any.js
r262312 r269866 29 29 }, "Branding"); 30 30 31 for (const type of ["i32", "f32", "f64"]) { 31 for (const type of ["i32", "i64", "f32", "f64"]) { 32 const [initial, value, invalid] = type === "i64" ? [0n, 1n, 2] : [0, 1, 2n]; 32 33 const immutableOptions = [ 33 34 [{}, "missing"], … … 42 43 opts.value = type; 43 44 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"); 46 47 47 assert_throws_js(TypeError, () => global.value = 1);48 assert_throws_js(TypeError, () => global.value = value); 48 49 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"); 51 52 }, `Immutable ${type} (${name})`); 52 53 … … 54 55 opts.value = type; 55 56 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"); 58 59 59 60 const value = { … … 63 64 assert_throws_js(TypeError, () => global.value = value); 64 65 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"); 67 68 }, `Immutable ${type} with ToNumber side-effects (${name})`); 68 69 } … … 78 79 opts.value = type; 79 80 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"); 82 83 83 global.value = 1;84 global.value = value; 84 85 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"); 87 90 }, `Mutable ${type} (${name})`); 88 91 } … … 92 95 const argument = { "value": "i64", "mutable": true }; 93 96 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");98 97 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"); 108 124 109 125 test(() => { -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/global/value-get-set.any.worker-expected.txt
r267649 r269866 17 17 PASS Mutable i32 (string) 18 18 PASS Mutable i32 (true on prototype) 19 FAIL Immutable i64 (missing) WebAssembly.Global.prototype.value does not work with i64 type 20 FAIL Immutable i64 with ToNumber side-effects (missing) WebAssembly.Global.prototype.value does not work with i64 type 21 FAIL Immutable i64 (undefined) WebAssembly.Global.prototype.value does not work with i64 type 22 FAIL Immutable i64 with ToNumber side-effects (undefined) WebAssembly.Global.prototype.value does not work with i64 type 23 FAIL Immutable i64 (null) WebAssembly.Global.prototype.value does not work with i64 type 24 FAIL Immutable i64 with ToNumber side-effects (null) WebAssembly.Global.prototype.value does not work with i64 type 25 FAIL Immutable i64 (false) WebAssembly.Global.prototype.value does not work with i64 type 26 FAIL Immutable i64 with ToNumber side-effects (false) WebAssembly.Global.prototype.value does not work with i64 type 27 FAIL Immutable i64 (empty string) WebAssembly.Global.prototype.value does not work with i64 type 28 FAIL Immutable i64 with ToNumber side-effects (empty string) WebAssembly.Global.prototype.value does not work with i64 type 29 FAIL Immutable i64 (zero) WebAssembly.Global.prototype.value does not work with i64 type 30 FAIL Immutable i64 with ToNumber side-effects (zero) WebAssembly.Global.prototype.value does not work with i64 type 31 FAIL Mutable i64 (true) WebAssembly.Global.prototype.value does not work with i64 type 32 FAIL Mutable i64 (one) WebAssembly.Global.prototype.value does not work with i64 type 33 FAIL Mutable i64 (string) WebAssembly.Global.prototype.value does not work with i64 type 34 FAIL Mutable i64 (true on prototype) WebAssembly.Global.prototype.value does not work with i64 type 19 35 PASS Immutable f32 (missing) 20 36 PASS Immutable f32 with ToNumber side-effects (missing) … … 49 65 PASS Mutable f64 (string) 50 66 PASS Mutable f64 (true on prototype) 51 PASS i64 with default 52 PASS i64 with ToNumber side-effects 67 FAIL i64 mutability WebAssembly.Global.prototype.value does not work with i64 type 53 68 PASS Calling setter without argument 54 69 PASS Stray argument -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any-expected.txt
r269186 r269866 1 1 2 PASS wasm-js-api interfaces. 2 PASS idl_test setup 3 PASS idl_test validation 3 4 PASS WebAssembly namespace: extended attributes 4 5 PASS WebAssembly namespace: property descriptor … … 19 20 PASS Module interface: operation imports(Module) 20 21 PASS 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" 22 PASS Module must be primary interface of [object WebAssembly.Module] 23 PASS Stringification of [object WebAssembly.Module] 24 PASS Module interface: [object WebAssembly.Module] must inherit property "exports(Module)" with the proper type 25 PASS Module interface: calling exports(Module) on [object WebAssembly.Module] with too few arguments must throw TypeError 26 PASS Module interface: [object WebAssembly.Module] must inherit property "imports(Module)" with the proper type 27 PASS Module interface: calling imports(Module) on [object WebAssembly.Module] with too few arguments must throw TypeError 28 PASS Module interface: [object WebAssembly.Module] must inherit property "customSections(Module, DOMString)" with the proper type 29 PASS Module interface: calling customSections(Module, DOMString) on [object WebAssembly.Module] with too few arguments must throw TypeError 29 30 PASS Instance interface: existence and properties of interface object 30 31 PASS Instance interface object length … … 34 35 PASS Instance interface: existence and properties of interface prototype object's @@unscopables property 35 36 PASS 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" 37 PASS Instance must be primary interface of [object WebAssembly.Instance] 38 PASS Stringification of [object WebAssembly.Instance] 39 PASS Instance interface: [object WebAssembly.Instance] must inherit property "exports" with the proper type 39 40 PASS Memory interface: existence and properties of interface object 40 41 PASS Memory interface object length … … 45 46 PASS Memory interface: operation grow(unsigned long) 46 47 PASS Memory interface: attribute buffer 47 PASS Memory must be primary interface of memory48 PASS Stringification of memory49 PASS Memory interface: memorymust inherit property "grow(unsigned long)" with the proper type50 PASS Memory interface: calling grow(unsigned long) on memorywith too few arguments must throw TypeError51 PASS Memory interface: memorymust inherit property "buffer" with the proper type48 PASS Memory must be primary interface of [object WebAssembly.Memory] 49 PASS Stringification of [object WebAssembly.Memory] 50 PASS Memory interface: [object WebAssembly.Memory] must inherit property "grow(unsigned long)" with the proper type 51 PASS Memory interface: calling grow(unsigned long) on [object WebAssembly.Memory] with too few arguments must throw TypeError 52 PASS Memory interface: [object WebAssembly.Memory] must inherit property "buffer" with the proper type 52 53 PASS Table interface: existence and properties of interface object 53 54 PASS Table interface object length -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any.js
r264573 r269866 7 7 // https://webassembly.github.io/spec/js-api/ 8 8 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 { 9 idl_test( 10 ['wasm-js-api'], 11 [], 12 async idl_array => { 26 13 self.mod = await createWasmModule(); 27 14 self.instance = new WebAssembly.Instance(self.mod); 28 } catch (e) { }29 15 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 2xx2 1 3 Harness Error (FAIL), message = NetworkError: Response is not 2xx 2 PASS idl_test setup 3 PASS idl_test validation 4 PASS WebAssembly namespace: extended attributes 5 PASS WebAssembly namespace: property descriptor 6 PASS WebAssembly namespace: [[Extensible]] is true 7 PASS WebAssembly namespace: [[Prototype]] is Object.prototype 8 PASS WebAssembly namespace: typeof is "object" 9 PASS WebAssembly namespace: operation validate(BufferSource) 10 PASS WebAssembly namespace: operation compile(BufferSource) 11 PASS WebAssembly namespace: operation instantiate(BufferSource, optional object) 12 PASS WebAssembly namespace: operation instantiate(Module, optional object) 13 PASS Module interface: existence and properties of interface object 14 PASS Module interface object length 15 PASS Module interface object name 16 PASS Module interface: existence and properties of interface prototype object 17 PASS Module interface: existence and properties of interface prototype object's "constructor" property 18 PASS Module interface: existence and properties of interface prototype object's @@unscopables property 19 PASS Module interface: operation exports(Module) 20 PASS Module interface: operation imports(Module) 21 PASS Module interface: operation customSections(Module, DOMString) 22 PASS Module must be primary interface of [object WebAssembly.Module] 23 PASS Stringification of [object WebAssembly.Module] 24 PASS Module interface: [object WebAssembly.Module] must inherit property "exports(Module)" with the proper type 25 PASS Module interface: calling exports(Module) on [object WebAssembly.Module] with too few arguments must throw TypeError 26 PASS Module interface: [object WebAssembly.Module] must inherit property "imports(Module)" with the proper type 27 PASS Module interface: calling imports(Module) on [object WebAssembly.Module] with too few arguments must throw TypeError 28 PASS Module interface: [object WebAssembly.Module] must inherit property "customSections(Module, DOMString)" with the proper type 29 PASS Module interface: calling customSections(Module, DOMString) on [object WebAssembly.Module] with too few arguments must throw TypeError 30 PASS Instance interface: existence and properties of interface object 31 PASS Instance interface object length 32 PASS Instance interface object name 33 PASS Instance interface: existence and properties of interface prototype object 34 PASS Instance interface: existence and properties of interface prototype object's "constructor" property 35 PASS Instance interface: existence and properties of interface prototype object's @@unscopables property 36 PASS Instance interface: attribute exports 37 PASS Instance must be primary interface of [object WebAssembly.Instance] 38 PASS Stringification of [object WebAssembly.Instance] 39 PASS Instance interface: [object WebAssembly.Instance] must inherit property "exports" with the proper type 40 PASS Memory interface: existence and properties of interface object 41 PASS Memory interface object length 42 PASS Memory interface object name 43 PASS Memory interface: existence and properties of interface prototype object 44 PASS Memory interface: existence and properties of interface prototype object's "constructor" property 45 PASS Memory interface: existence and properties of interface prototype object's @@unscopables property 46 PASS Memory interface: operation grow(unsigned long) 47 PASS Memory interface: attribute buffer 48 PASS Memory must be primary interface of [object WebAssembly.Memory] 49 PASS Stringification of [object WebAssembly.Memory] 50 PASS Memory interface: [object WebAssembly.Memory] must inherit property "grow(unsigned long)" with the proper type 51 PASS Memory interface: calling grow(unsigned long) on [object WebAssembly.Memory] with too few arguments must throw TypeError 52 PASS Memory interface: [object WebAssembly.Memory] must inherit property "buffer" with the proper type 53 PASS Table interface: existence and properties of interface object 54 PASS Table interface object length 55 PASS Table interface object name 56 PASS Table interface: existence and properties of interface prototype object 57 PASS Table interface: existence and properties of interface prototype object's "constructor" property 58 PASS Table interface: existence and properties of interface prototype object's @@unscopables property 59 PASS Table interface: operation grow(unsigned long) 60 PASS Table interface: operation get(unsigned long) 61 PASS Table interface: operation set(unsigned long, Function?) 62 PASS Table interface: attribute length 63 PASS Global interface: existence and properties of interface object 64 PASS Global interface object length 65 PASS Global interface object name 66 PASS Global interface: existence and properties of interface prototype object 67 PASS Global interface: existence and properties of interface prototype object's "constructor" property 68 PASS Global interface: existence and properties of interface prototype object's @@unscopables property 69 PASS Global interface: operation valueOf() 70 PASS Global interface: attribute value 4 71 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/instance/constructor-bad-imports.any-expected.txt
r267649 r269866 1 CONSOLE MESSAGE: TypeError: WebAssembly.Global does not accept i64 initial value 2 3 Harness Error (FAIL), message = TypeError: WebAssembly.Global does not accept i64 initial value 1 4 2 5 PASS new WebAssembly.Instance(module): Non-object imports argument: null … … 19 22 PASS new WebAssembly.Instance(module): Imports argument with missing property: empty object 20 23 PASS new WebAssembly.Instance(module): Imports argument with missing property: wrong property 21 PASS new WebAssembly.Instance(module): Importing an i64 global22 24 PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: undefined 23 25 PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: null … … 29 31 PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: NaN 30 32 PASS 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) 33 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: undefined 34 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: null 35 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: true 36 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: "" 37 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: symbol "Symbol()" 38 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: plain object 39 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global 40 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global.prototype 41 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 42 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: BigInt 43 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 44 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: undefined 45 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: null 46 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: true 47 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: "" 48 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: symbol "Symbol()" 49 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: plain object 50 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global 51 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global.prototype 52 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 53 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: Number 54 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 55 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: undefined 56 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: null 57 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: true 58 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: "" 59 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: symbol "Symbol()" 60 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: plain object 61 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global 62 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global.prototype 63 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 64 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: BigInt 65 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 66 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: undefined 67 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: null 68 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: true 69 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: "" 70 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: symbol "Symbol()" 71 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: plain object 72 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global 73 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global.prototype 74 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 75 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: BigInt 76 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 77 PASS new WebAssembly.Instance(module): Importing an i32 mutable global with a primitive value 78 PASS new WebAssembly.Instance(module): Importing an i32 mutable global with an immutable Global object 79 PASS new WebAssembly.Instance(module): Importing an i64 mutable global with a primitive value 67 80 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/instance/constructor-bad-imports.any.worker-expected.txt
r267649 r269866 1 CONSOLE MESSAGE: TypeError: WebAssembly.Global does not accept i64 initial value 2 3 Harness Error (FAIL), message = TypeError: WebAssembly.Global does not accept i64 initial value 1 4 2 5 PASS new WebAssembly.Instance(module): Non-object imports argument: null … … 19 22 PASS new WebAssembly.Instance(module): Imports argument with missing property: empty object 20 23 PASS new WebAssembly.Instance(module): Imports argument with missing property: wrong property 21 PASS new WebAssembly.Instance(module): Importing an i64 global22 24 PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: undefined 23 25 PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: null … … 29 31 PASS new WebAssembly.Instance(module): Importing a function with an incorrectly-typed value: NaN 30 32 PASS 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) 33 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: undefined 34 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: null 35 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: true 36 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: "" 37 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: symbol "Symbol()" 38 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: plain object 39 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global 40 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global.prototype 41 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 42 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: BigInt 43 PASS new WebAssembly.Instance(module): Importing an i32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 44 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: undefined 45 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: null 46 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: true 47 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: "" 48 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: symbol "Symbol()" 49 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: plain object 50 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global 51 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global.prototype 52 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 53 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: Number 54 PASS new WebAssembly.Instance(module): Importing an i64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 55 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: undefined 56 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: null 57 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: true 58 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: "" 59 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: symbol "Symbol()" 60 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: plain object 61 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global 62 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global.prototype 63 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 64 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: BigInt 65 PASS new WebAssembly.Instance(module): Importing an f32 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 66 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: undefined 67 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: null 68 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: true 69 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: "" 70 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: symbol "Symbol()" 71 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: plain object 72 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global 73 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global.prototype 74 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: Object.create(WebAssembly.Global.prototype) 75 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: BigInt 76 PASS new WebAssembly.Instance(module): Importing an f64 global with an incorrectly-typed value: WebAssembly.Global object (wrong value type) 77 PASS new WebAssembly.Instance(module): Importing an i32 mutable global with a primitive value 78 PASS new WebAssembly.Instance(module): Importing an i32 mutable global with an immutable Global object 79 PASS new WebAssembly.Instance(module): Importing an i64 mutable global with a primitive value 67 80 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/instance/constructor.any-expected.txt
r267649 r269866 12 12 FAIL 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"]) 13 13 FAIL exports and imports assert_false: fn: writable expected false got true 14 FAIL i64 exports and imports imported global module:global cannot be an i64 (evaluating 'new WebAssembly.Instance(module, ...args)') 15 FAIL import with i32-returning function assert_false: fn2: writable expected false got true 16 FAIL import with function that takes and returns i32 assert_false: fn2: writable expected false got true 17 FAIL import with i64-returning function assert_false: fn2: writable expected false got true 18 FAIL import with function that takes and returns i64 assert_false: fn2: writable expected false got true 19 FAIL import with i32-taking function assert_false: fn: writable expected false got true 20 FAIL import with i64-taking function assert_false: fn: writable expected false got true 21 FAIL export i64-returning function assert_false: fn: writable expected false got true 22 FAIL i32 mutable WebAssembly.Global import assert_false: fn: writable expected false got true 23 FAIL i64 mutable WebAssembly.Global import WebAssembly.Global does not accept i64 initial value 24 FAIL Multiple i64 arguments assert_false: fn: writable expected false got true 14 25 PASS stray argument 15 26 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/instance/constructor.any.worker-expected.txt
r267649 r269866 12 12 FAIL 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"]) 13 13 FAIL exports and imports assert_false: fn: writable expected false got true 14 FAIL i64 exports and imports imported global module:global cannot be an i64 (evaluating 'new WebAssembly.Instance(module, ...args)') 15 FAIL import with i32-returning function assert_false: fn2: writable expected false got true 16 FAIL import with function that takes and returns i32 assert_false: fn2: writable expected false got true 17 FAIL import with i64-returning function assert_false: fn2: writable expected false got true 18 FAIL import with function that takes and returns i64 assert_false: fn2: writable expected false got true 19 FAIL import with i32-taking function assert_false: fn: writable expected false got true 20 FAIL import with i64-taking function assert_false: fn: writable expected false got true 21 FAIL export i64-returning function assert_false: fn: writable expected false got true 22 FAIL i32 mutable WebAssembly.Global import assert_false: fn: writable expected false got true 23 FAIL i64 mutable WebAssembly.Global import WebAssembly.Global does not accept i64 initial value 24 FAIL Multiple i64 arguments assert_false: fn: writable expected false got true 14 25 PASS stray argument 15 26 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/instanceTestFactory.js
r260690 r269866 212 212 213 213 [ 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 [ 214 623 "stray argument", 215 624 function() { -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any-expected.txt
r269531 r269866 19 19 PASS Out-of-range maximum value in descriptor: 68719476736 20 20 PASS Initial value exceeds maximum 21 FAIL Shared memory without maximum assert_throws_js: function "() => new WebAssembly.Memory({ "initial": 10, "shared": true })" did not throw22 21 PASS Proxy descriptor 23 22 PASS 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 425 23 PASS Zero initial 26 24 PASS Non-zero initial 27 25 FAIL 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]"29 26 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js
r262312 r269866 1 1 // META: global=window,dedicatedworker,jsshell 2 2 // 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 24 4 25 5 test(() => { … … 88 68 89 69 test(() => { 90 assert_throws_js(TypeError, () => new WebAssembly.Memory({ "initial": 10, "shared": true }));91 }, "Shared memory without maximum");92 93 test(() => {94 70 const proxy = new Proxy({}, { 95 71 has(o, x) { … … 97 73 }, 98 74 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 } 100 85 }, 101 86 }); … … 136 121 }, "Order of evaluation for descriptor"); 137 122 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 179 123 test(() => { 180 124 const argument = { "initial": 0 }; … … 194 138 assert_Memory(memory, { "size": 0 }); 195 139 }, "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 19 19 PASS Out-of-range maximum value in descriptor: 68719476736 20 20 PASS Initial value exceeds maximum 21 FAIL Shared memory without maximum assert_throws_js: function "() => new WebAssembly.Memory({ "initial": 10, "shared": true })" did not throw22 21 PASS Proxy descriptor 23 22 PASS 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 425 23 PASS Zero initial 26 24 PASS Non-zero initial 27 25 FAIL 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]"29 26 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/grow.any.js
r262312 r269866 1 1 // 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 29 3 30 4 test(() => { -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/w3c-import.log
r247457 r269866 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/assertions.js 17 18 /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 18 21 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/memory/constructor.any.js 19 22 /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 12 12 `${message}: table.get(${expected.length + 1} of ${expected.length})`); 13 13 } 14 15 function 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 1 1 // META: global=window,dedicatedworker,jsshell 2 2 // 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 14 4 15 5 test(() => { -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/w3c-import.log
r260690 r269866 16 16 List of files: 17 17 /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 18 19 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any.js 19 20 /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 22 22 /LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/interface.any.js 23 23 /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 24 25 /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 4 4 5 5 // 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); 6 let byte_view = new Uint8Array(8); 7 let data_view = new DataView(byte_view.buffer); 10 8 11 9 // The bytes function receives one of … … 100 98 let kWasmF64 = 0x7c; 101 99 let kWasmS128 = 0x7b; 102 let kWasm ExternRef = 0x6f;100 let kWasmAnyRef = 0x6f; 103 101 let kWasmAnyFunc = 0x70; 104 102 let kWasmExnRef = 0x68; … … 150 148 let kSig_f_d = makeSig([kWasmF64], [kWasmF32]); 151 149 let kSig_d_d = makeSig([kWasmF64], [kWasmF64]); 152 let kSig_r_r = makeSig([kWasm ExternRef], [kWasmExternRef]);150 let kSig_r_r = makeSig([kWasmAnyRef], [kWasmAnyRef]); 153 151 let kSig_a_a = makeSig([kWasmAnyFunc], [kWasmAnyFunc]); 154 152 let kSig_e_e = makeSig([kWasmExnRef], [kWasmExnRef]); 155 let kSig_i_r = makeSig([kWasm ExternRef], [kWasmI32]);156 let kSig_v_r = makeSig([kWasm ExternRef], []);153 let kSig_i_r = makeSig([kWasmAnyRef], [kWasmI32]); 154 let kSig_v_r = makeSig([kWasmAnyRef], []); 157 155 let kSig_v_a = makeSig([kWasmAnyFunc], []); 158 156 let kSig_v_e = makeSig([kWasmExnRef], []); 159 let kSig_v_rr = makeSig([kWasm ExternRef, kWasmExternRef], []);157 let kSig_v_rr = makeSig([kWasmAnyRef, kWasmAnyRef], []); 160 158 let kSig_v_aa = makeSig([kWasmAnyFunc, kWasmAnyFunc], []); 161 let kSig_r_v = makeSig([], [kWasm ExternRef]);159 let kSig_r_v = makeSig([], [kWasmAnyRef]); 162 160 let kSig_a_v = makeSig([], [kWasmAnyFunc]); 163 161 let kSig_a_i = makeSig([kWasmI32], [kWasmAnyFunc]); … … 749 747 750 748 addTable(type, initial_size, max_size = undefined) { 751 if (type != kWasm ExternRef && type != kWasmAnyFunc && type != kWasmExnRef) {749 if (type != kWasmAnyRef && type != kWasmAnyFunc && type != kWasmExnRef) { 752 750 throw new Error( 753 'Tables must be of type kWasm ExternRef, kWasmAnyFunc, or kWasmExnRef');751 'Tables must be of type kWasmAnyRef, kWasmAnyFunc, or kWasmExnRef'); 754 752 } 755 753 let table = new WasmTableBuilder(this, type, initial_size, max_size); … … 1018 1016 break; 1019 1017 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)); 1023 1019 break; 1024 1020 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)); 1028 1022 break; 1029 1023 case kWasmAnyFunc: 1030 case kWasm ExternRef:1024 case kWasmAnyRef: 1031 1025 if (global.function_index !== undefined) { 1032 1026 section.emit_u8(kExprRefFunc); … … 1174 1168 local_decls.push({count: l.s128_count, type: kWasmS128}); 1175 1169 } 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}); 1178 1172 } 1179 1173 if (l.anyfunc_count > 0) { … … 1323 1317 1324 1318 function wasmF32Const(f) { 1325 f32_view[0] = f; 1319 // Write in little-endian order at offset 0. 1320 data_view.setFloat32(0, f, true); 1326 1321 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] 1329 1323 ]; 1330 1324 } 1331 1325 1332 1326 function wasmF64Const(f) { 1333 f64_view[0] = f; 1327 // Write in little-endian order at offset 0. 1328 data_view.setFloat64(0, f, true); 1334 1329 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] 1338 1332 ]; 1339 1333 } -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/resources/w3c-import.log
r269865 r269866 15 15 ------------------------------------------------------------------------ 16 16 List 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 15 15 ------------------------------------------------------------------------ 16 16 List 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 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/wasm/ jsapi/memory/buffer.any.js18 /LayoutTests/imported/w3c/web-platform-tests/wasm/ jsapi/memory/constructor.any.js19 /LayoutTests/imported/w3c/web-platform-tests/wasm/ jsapi/memory/grow.any.js20 /LayoutTests/imported/w3c/web-platform-tests/wasm/ jsapi/memory/toString.any.js17 /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 351 351 imported/w3c/web-platform-tests/IndexedDB/key-generators/reading-autoincrement-store.any.serviceworker.html [ Skip ] 352 352 imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/requires-failure.https.any.serviceworker.html [ Skip ] 353 imported/w3c/web-platform-tests/wasm/serialization/module/window-serviceworker-failure.https.html [ Skip ] 353 354 354 355 # Quota check missing in WK1
Note: See TracChangeset
for help on using the changeset viewer.