BREAKING: Remove support for .wasm imports (#5135)

Importing .wasm files is non-standardized therefore deciding to
support current functionality past 1.0 release is risky.

Besides that .wasm import posed many challenges in our codebase
due to complex interactions with TS compiler which spawned
thread for each encountered .wasm import.

This commit removes:
- cli/compilers/wasm.rs
- cli/compilers/wasm_wrap.js
- two integration tests related to .wasm imports
This commit is contained in:
Bartek Iwańczuk 2020-05-07 20:43:27 +02:00 committed by GitHub
parent 93cf3bd534
commit 2b66b8a03e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 5 additions and 388 deletions

View file

@ -50,7 +50,7 @@ fn compiler_snapshot() {
deno_core::js_check(isolate.execute(
"<anon>",
r#"
if (!(bootstrap.tsCompilerRuntime && bootstrap.wasmCompilerRuntime)) {
if (!(bootstrap.tsCompilerRuntime)) {
throw Error("bad");
}
console.log(`ts version: ${ts.version}`);