mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-25 11:02:11 +03:00
TypeScript is no longer enabled
This commit is contained in:
parent
bd068207a1
commit
1bcfcaf1ed
@ -22,14 +22,15 @@ fn has_instance() {
|
||||
"#,
|
||||
)
|
||||
.file(
|
||||
"test.ts",
|
||||
"test.js",
|
||||
r#"
|
||||
import * as assert from "assert";
|
||||
import * as wasm from "./out";
|
||||
class Array1 {}
|
||||
Object.defineProperty(Array1, wasm.symbol_has_instance(), {
|
||||
value: (instance: any) => Array.isArray(instance)
|
||||
});
|
||||
class Array1 {
|
||||
static [wasm.symbol_has_instance()](instance) {
|
||||
return Array.isArray(instance);
|
||||
}
|
||||
}
|
||||
|
||||
export function test() {
|
||||
assert.equal(typeof wasm.symbol_has_instance(), "symbol");
|
||||
|
Loading…
Reference in New Issue
Block a user