mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-01 18:01:06 +00:00
* Re-enable WebGPU WebIDL as experimental * Add `web_sys_unstable_apis` attribute * Add test for unstable WebIDL * Include unstable WebIDL in docs.rs builds * Add docs and doc comment for unstable APIs * Add unstable API checks to CI
14 lines
219 B
JavaScript
14 lines
219 B
JavaScript
global.GetUnstableInterface = class {
|
|
static get() {
|
|
return {
|
|
enum_value(dict) {
|
|
if (!dict) {
|
|
return 0;
|
|
}
|
|
|
|
return dict.unstableEnum === "a" ? 1 : 2;
|
|
}
|
|
}
|
|
}
|
|
}
|