Skip to content

Commit 6a4a116

Browse files
Ilya Rezvovmoz-wptsync-bot
authored andcommitted
Bug 1949531 [wpt PR 50839] - [wasm][jspi] Fix wpt and reenable WPT tests for JSPI, a=testonly
Automatic update from web-platform-tests [wasm][jspi] Fix wpt and reenable WPT tests for JSPI Update JSPI wpt test according to recent changes in spec landed in WebAssembly/js-promise-integration#57 Bug: 397449611 Change-Id: Iea277d945df24c00fce1565dae415ecb3e0092a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6282812 Reviewed-by: Shu-yu Guo <syg@chromium.org> Reviewed-by: Rezvan Mahdavi Hezaveh <rezvan@chromium.org> Commit-Queue: Ilya Rezvov <irezvov@chromium.org> Cr-Commit-Position: refs/heads/main@{#1422652} -- wpt-commits: 1ed7956f44f916907b3157e13cc5f5bf10b18c57 wpt-pr: 50839
1 parent 9aa38c0 commit 6a4a116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/web-platform/tests/wasm/jsapi/jspi/js-promise-integration.any.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ promise_test(async () => {
237237

238238
let exported_promise = wrapped_export();
239239
AbeforeB.setB();
240-
assert_true(AbeforeB.isAbeforeB());
241240

242241
assert_equals(await exported_promise, 42);
243-
}, "Do not suspend if the import's return value is not a Promise");
242+
assert_true(AbeforeB.isBbeforeA());
243+
}, "Do suspend even if the import's return value is not a Promise by wrapping it with Promise.resolve");
244244

245245
promise_test(async (t) => {
246246
let tag = new WebAssembly.Tag({

0 commit comments

Comments
 (0)