Changeset 288064 in webkit
- Timestamp:
- Jan 15, 2022 1:17:40 PM (6 months ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any.worker-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/interface.any.js (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any.js (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any.worker-expected.txt (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/wasm/js/WebAssemblyTablePrototype.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r288061 r288064 1 2022-01-15 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Fix misc WebAssembly.Table issues 4 https://bugs.webkit.org/show_bug.cgi?id=235262 5 6 Reviewed by Alexey Shvayka. 7 8 Fix length of WebAssembly.Table.set from 2 to 1. 9 According to the spec[1], it should be 1 since the second argument is an optional. 10 11 Also fix stray argument test. Previously, it was stray argument. But after the update 12 of the wasm spec, the second argument of Table constructor can be used for initial value. 13 So, WebAssembly.Table "anyfunc" with {} initial value throws an error since it is not 14 a function. This fixes a test, passing null for the second argument, and adding third 15 stray argument for the stray argument test. 16 17 [1]: https://webassembly.github.io/spec/js-api/index.html#tables 18 19 * web-platform-tests/wasm/jsapi/idlharness.any-expected.txt: 20 * web-platform-tests/wasm/jsapi/idlharness.any.worker-expected.txt: 21 * web-platform-tests/wasm/jsapi/interface.any.js: 22 * web-platform-tests/wasm/jsapi/table/constructor.any-expected.txt: 23 * web-platform-tests/wasm/jsapi/table/constructor.any.js: 24 (test): 25 * web-platform-tests/wasm/jsapi/table/constructor.any.worker-expected.txt: 26 1 27 2022-01-15 Alan Bujtas <zalan@apple.com> 2 28 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any-expected.txt
r279385 r288064 61 61 PASS Table interface: operation grow(unsigned long, optional any) 62 62 PASS Table interface: operation get(unsigned long) 63 FAIL Table interface: operation set(unsigned long, optional any) assert_equals: property has wrong .length expected 1 but got 2 63 PASS Table interface: operation set(unsigned long, optional any) 64 64 PASS Table interface: attribute length 65 65 PASS Global interface: existence and properties of interface object -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/idlharness.any.worker-expected.txt
r279385 r288064 61 61 PASS Table interface: operation grow(unsigned long, optional any) 62 62 PASS Table interface: operation get(unsigned long) 63 FAIL Table interface: operation set(unsigned long, optional any) assert_equals: property has wrong .length expected 1 but got 2 63 PASS Table interface: operation set(unsigned long, optional any) 64 64 PASS Table interface: attribute length 65 65 PASS Global interface: existence and properties of interface object -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/interface.any.js
r262312 r288064 144 144 ["grow", 1], 145 145 ["get", 1], 146 ["set", 2],146 ["set", 1], 147 147 ]); 148 148 -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any-expected.txt
r288049 r288064 23 23 PASS Basic (zero) 24 24 PASS Basic (non-zero) 25 FAIL Stray argument WebAssembly.Table.prototype.constructor expects the second argument to be null or an instance of WebAssembly.Function 25 PASS Stray argument 26 26 PASS Proxy descriptor 27 27 PASS Type conversion for descriptor.element -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any.js
r288049 r288064 90 90 test(() => { 91 91 const argument = { "element": "anyfunc", "initial": 0 }; 92 const table = new WebAssembly.Table(argument, {});92 const table = new WebAssembly.Table(argument, null, {}); 93 93 assert_Table(table, { "length": 0 }); 94 94 }, "Stray argument"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any.worker-expected.txt
r288049 r288064 23 23 PASS Basic (zero) 24 24 PASS Basic (non-zero) 25 FAIL Stray argument WebAssembly.Table.prototype.constructor expects the second argument to be null or an instance of WebAssembly.Function 25 PASS Stray argument 26 26 PASS Proxy descriptor 27 27 PASS Type conversion for descriptor.element -
trunk/Source/JavaScriptCore/ChangeLog
r288050 r288064 1 2022-01-15 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Fix misc WebAssembly.Table issues 4 https://bugs.webkit.org/show_bug.cgi?id=235262 5 6 Reviewed by Alexey Shvayka. 7 8 * wasm/js/WebAssemblyTablePrototype.cpp: 9 1 10 2022-01-14 Yusuke Suzuki <ysuzuki@apple.com> and Mikhail R. Gadelha <mikhail@igalia.com> 2 11 -
trunk/Source/JavaScriptCore/wasm/js/WebAssemblyTablePrototype.cpp
r285730 r288064 56 56 grow webAssemblyTableProtoFuncGrow Function 1 57 57 get webAssemblyTableProtoFuncGet Function 1 58 set webAssemblyTableProtoFuncSet Function 258 set webAssemblyTableProtoFuncSet Function 1 59 59 type webAssemblyTableProtoFuncType Function 0 60 60 @end
Note: See TracChangeset
for help on using the changeset viewer.