mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-03 19:01:06 +00:00
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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|