Skip to content

Commit

Permalink
Add more wasm features (#2403)
Browse files Browse the repository at this point in the history
* Add more wasm features

* Apply suggestions from code review

Co-authored-by: Daniel D. Beck <[email protected]>

* Update features/wasm-string-builtins.yml

Co-authored-by: Daniel D. Beck <[email protected]>

* npm run dist

---------

Co-authored-by: Daniel D. Beck <[email protected]>
  • Loading branch information
Elchi3 and ddbeck authored Dec 10, 2024
1 parent 4039d32 commit b60f37f
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 1 deletion.
2 changes: 1 addition & 1 deletion features/wasm-exception-handling.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Exception handling (WebAssembly)
description: Exceptions break the normal control flow of execution to represent exceptional behavior, such as an error. You can respond to the exception in JavaScript code.
spec: https://github.com/WebAssembly/exception-handling/blob/main/proposals/exception-handling/Exceptions.md
spec: https://github.com/WebAssembly/exception-handling/blob/main/proposals/exception-handling/legacy/Exceptions.md
group: webassembly
status:
compute_from: webassembly.api.Exception
Expand Down
6 changes: 6 additions & 0 deletions features/wasm-exnref-exceptions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Exception references with exnref (WebAssembly)
description: When caught, an exception is reified into an exception reference, a value of the new type `exnref`.
spec: https://github.com/WebAssembly/exception-handling/blob/main/proposals/exception-handling/Exceptions.md
group: webassembly
compat_features:
- webassembly.exceptionsFinal
10 changes: 10 additions & 0 deletions features/wasm-exnref-exceptions.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Generated from: wasm-exnref-exceptions.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
firefox: "131"
firefox_android: "131"
compat_features:
- webassembly.exceptionsFinal
6 changes: 6 additions & 0 deletions features/wasm-memory64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Memory64 (WebAssembly)
description: Instructions accept 64-bit memory indexes.
spec: https://github.com/WebAssembly/memory64/blob/main/proposals/memory64/Overview.md
group: webassembly
compat_features:
- webassembly.memory64
8 changes: 8 additions & 0 deletions features/wasm-memory64.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Generated from: wasm-memory64.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support: {}
compat_features:
- webassembly.memory64
6 changes: 6 additions & 0 deletions features/wasm-string-builtins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: String builtins (WebAssembly)
description: The WebAssembly builtin string functions mirror a subset of the JavaScript `String` API and adapt it to be efficiently callable without JavaScript glue code.
spec: https://github.com/WebAssembly/js-string-builtins/blob/main/proposals/js-string-builtins/Overview.md
group: webassembly
compat_features:
- webassembly.jsStringBuiltins
10 changes: 10 additions & 0 deletions features/wasm-string-builtins.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Generated from: wasm-string-builtins.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "130"
edge: "130"
compat_features:
- webassembly.jsStringBuiltins
6 changes: 6 additions & 0 deletions features/wasm-typed-fun-refs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Typed function references (WebAssembly)
description: A typed function reference can be called directly.
spec: https://github.com/WebAssembly/function-references/blob/main/proposals/function-references/Overview.md
group: webassembly
compat_features:
- webassembly.typedFunctionReferences
16 changes: 16 additions & 0 deletions features/wasm-typed-fun-refs.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated from: wasm-typed-fun-refs.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: low
baseline_low_date: 2024-09-16
support:
chrome: "119"
chrome_android: "119"
edge: "119"
firefox: "120"
firefox_android: "120"
safari: "18"
safari_ios: "18"
compat_features:
- webassembly.typedFunctionReferences
16 changes: 16 additions & 0 deletions scripts/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,22 @@ const defaultAllowlist: allowlistItem[] = [
[
"https://github.com/WebAssembly/threads/blob/main/proposals/threads/Overview.md",
"Allowed because there is no other specification to link to."
],
[
"https://github.com/WebAssembly/function-references/blob/main/proposals/function-references/Overview.md",
"Allowed because there is no other specification to link to."
],
[
"https://github.com/WebAssembly/js-string-builtins/blob/main/proposals/js-string-builtins/Overview.md",
"Allowed because there is no other specification to link to."
],
[
"https://github.com/WebAssembly/memory64/blob/main/proposals/memory64/Overview.md",
"Allowed because there is no other specification to link to."
],
[
"https://github.com/WebAssembly/exception-handling/blob/main/proposals/exception-handling/legacy/Exceptions.md",
"Allowed because there is no other specification to link to."
]
];

Expand Down

0 comments on commit b60f37f

Please sign in to comment.