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( .file(
"test.ts", "test.js",
r#" r#"
import * as assert from "assert"; import * as assert from "assert";
import * as wasm from "./out"; import * as wasm from "./out";
class Array1 {} class Array1 {
Object.defineProperty(Array1, wasm.symbol_has_instance(), { static [wasm.symbol_has_instance()](instance) {
value: (instance: any) => Array.isArray(instance) return Array.isArray(instance);
}); }
}
export function test() { export function test() {
assert.equal(typeof wasm.symbol_has_instance(), "symbol"); assert.equal(typeof wasm.symbol_has_instance(), "symbol");