Skip to content

Commit

Permalink
Bug 1750040 - wasm: Enable wasm exception handling in nightly. r=lth
Browse files Browse the repository at this point in the history
  • Loading branch information
eqrion committed Jan 31, 2022
1 parent b1a8fa9 commit d4d2cb3
Show file tree
Hide file tree
Showing 13 changed files with 208 additions and 90 deletions.
10 changes: 10 additions & 0 deletions dom/serviceworkers/test/test_serviceworker_interfaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ var wasmGlobalInterfaces = [
insecureContext: true,
nightly: true,
},
{
name: "Exception",
insecureContext: true,
nightly: true,
},
{
name: "Tag",
insecureContext: true,
nightly: true,
},
];
// IMPORTANT: Do not change this list without review from
// a JavaScript Engine peer!
Expand Down
10 changes: 10 additions & 0 deletions dom/tests/mochitest/general/test_interfaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ var wasmGlobalInterfaces = [
insecureContext: true,
nightly: true,
},
{
name: "Exception",
insecureContext: true,
nightly: true,
},
{
name: "Tag",
insecureContext: true,
nightly: true,
},
];
// IMPORTANT: Do not change this list without review from
// a JavaScript Engine peer!
Expand Down
10 changes: 10 additions & 0 deletions dom/workers/test/test_worker_interfaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ var wasmGlobalInterfaces = [
insecureContext: true,
nightly: true,
},
{
name: "Exception",
insecureContext: true,
nightly: true,
},
{
name: "Tag",
insecureContext: true,
nightly: true,
},
];
// IMPORTANT: Do not change this list without review from
// a JavaScript Engine peer!
Expand Down
2 changes: 1 addition & 1 deletion js/public/WasmFeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
/* flag predicate */ true, \
/* shell flag */ "extended-const", \
/* preference name */ "extended_const") \
EXPERIMENTAL( \
TENTATIVE( \
/* capitalized name */ Exceptions, \
/* lower case name */ exceptions, \
/* compile predicate */ WASM_EXCEPTIONS_ENABLED, \
Expand Down
2 changes: 1 addition & 1 deletion modules/libpref/init/StaticPrefList.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6666,7 +6666,7 @@
#if defined(ENABLE_WASM_EXCEPTIONS)
- name: javascript.options.wasm_exceptions
type: bool
value: false
value: @IS_NIGHTLY_BUILD@
mirror: always
#endif // defined(ENABLE_WASM_EXCEPTIONS)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,83 +1,108 @@
[basic.tentative.any.worker.html]
[Wasm function throws argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[Wasm function throws null]
expected: FAIL
expected:
if release_or_beta: FAIL

[Wasm function throws integer]
expected: FAIL
expected:
if release_or_beta: FAIL

[Imported JS function throws]
expected: FAIL
expected:
if release_or_beta: FAIL

[Imported JS function throws, Wasm catches and rethrows]
expected: FAIL
expected:
if release_or_beta: FAIL


[basic.tentative.any.serviceworker.html]
[Wasm function throws argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[Wasm function throws null]
expected: FAIL
expected:
if release_or_beta: FAIL

[Wasm function throws integer]
expected: FAIL
expected:
if release_or_beta: FAIL

[Imported JS function throws]
expected: FAIL
expected:
if release_or_beta: FAIL

[Imported JS function throws, Wasm catches and rethrows]
expected: FAIL
expected:
if release_or_beta: FAIL


[basic.tentative.any.sharedworker.html]
[Wasm function throws argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[Wasm function throws null]
expected: FAIL
expected:
if release_or_beta: FAIL

[Wasm function throws integer]
expected: FAIL
expected:
if release_or_beta: FAIL

[Imported JS function throws]
expected: FAIL
expected:
if release_or_beta: FAIL

[Imported JS function throws, Wasm catches and rethrows]
expected: FAIL
expected:
if release_or_beta: FAIL


[basic.tentative.any.html]
[Wasm function throws argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[Wasm function throws null]
expected: FAIL
expected:
if release_or_beta: FAIL

[Wasm function throws integer]
expected: FAIL
expected:
if release_or_beta: FAIL

[Imported JS function throws]
expected: FAIL
expected:
if release_or_beta: FAIL

[Imported JS function throws, Wasm catches and rethrows]
expected: FAIL
expected:
if release_or_beta: FAIL


[basic.tentative.any.js]
[Wasm function throws argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[Wasm function throws null]
expected: FAIL
expected:
if release_or_beta: FAIL

[Wasm function throws integer]
expected: FAIL
expected:
if release_or_beta: FAIL

[Imported JS function throws]
expected: FAIL
expected:
if release_or_beta: FAIL

[Imported JS function throws, Wasm catches and rethrows]
expected: FAIL
expected:
if release_or_beta: FAIL
Original file line number Diff line number Diff line change
@@ -1,40 +1,52 @@
[constructor.tentative.any.worker.html]
[name]
expected: FAIL
expected:
if release_or_beta: FAIL

[length]
expected: FAIL
expected:
if release_or_beta: FAIL

[Calling]
expected: FAIL
expected:
if release_or_beta: FAIL

[Invalid exception argument]
expected: FAIL
expected:
if release_or_beta: FAIL


[constructor.tentative.any.html]
[name]
expected: FAIL
expected:
if release_or_beta: FAIL

[length]
expected: FAIL
expected:
if release_or_beta: FAIL

[Calling]
expected: FAIL
expected:
if release_or_beta: FAIL

[Invalid exception argument]
expected: FAIL
expected:
if release_or_beta: FAIL


[constructor.tentative.any.js]
[name]
expected: FAIL
expected:
if release_or_beta: FAIL

[length]
expected: FAIL
expected:
if release_or_beta: FAIL

[Calling]
expected: FAIL
expected:
if release_or_beta: FAIL

[Invalid exception argument]
expected: FAIL
expected:
if release_or_beta: FAIL
Original file line number Diff line number Diff line change
@@ -1,49 +1,64 @@
[getArg.tentative.any.worker.html]
[Missing arguments]
expected: FAIL
expected:
if release_or_beta: FAIL

[Invalid exception argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[Index out of bounds]
expected: FAIL
expected:
if release_or_beta: FAIL

[Getting out-of-range argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[getArg]
expected: FAIL
expected:
if release_or_beta: FAIL


[getArg.tentative.any.html]
[Missing arguments]
expected: FAIL
expected:
if release_or_beta: FAIL

[Invalid exception argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[Index out of bounds]
expected: FAIL
expected:
if release_or_beta: FAIL

[Getting out-of-range argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[getArg]
expected: FAIL
expected:
if release_or_beta: FAIL


[getArg.tentative.any.js]
[Missing arguments]
expected: FAIL
expected:
if release_or_beta: FAIL

[Invalid exception argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[Index out of bounds]
expected: FAIL
expected:
if release_or_beta: FAIL

[Getting out-of-range argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[getArg]
expected: FAIL
expected:
if release_or_beta: FAIL
Original file line number Diff line number Diff line change
@@ -1,31 +1,40 @@
[is.tentative.any.html]
[Missing arguments]
expected: FAIL
expected:
if release_or_beta: FAIL

[Invalid exception argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[is]
expected: FAIL
expected:
if release_or_beta: FAIL


[is.tentative.any.worker.html]
[Missing arguments]
expected: FAIL
expected:
if release_or_beta: FAIL

[Invalid exception argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[is]
expected: FAIL
expected:
if release_or_beta: FAIL


[is.tentative.any.js]
[Missing arguments]
expected: FAIL
expected:
if release_or_beta: FAIL

[Invalid exception argument]
expected: FAIL
expected:
if release_or_beta: FAIL

[is]
expected: FAIL
expected:
if release_or_beta: FAIL
Loading

0 comments on commit d4d2cb3

Please sign in to comment.