TypeScript is no longer enabled

This commit is contained in:
Satoshi Amemiya 2018-07-06 15:41:07 +09:00
parent bd068207a1
commit 1bcfcaf1ed

View File

@ -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");