diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-26 16:33:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 16:33:25 +0200 |
commit | ff785bc35aa650152643ffc65a2195e2b27f845b (patch) | |
tree | 1a06106a4cb30049e5fb9928c51ab0fea4c21e3b /cli/ops/runtime_compiler.rs | |
parent | e0d4696a7201301dfa23e108b6e73d016e3f5e63 (diff) |
refactor: use JsRuntime to implement TSC (#7691)
This commits removes "CompilerWorker" in favor of
using "JsRuntime".
"cli/ops/compiler.rs" has been removed in favor of inline
registration of ops in "cli/tsc.rs"
Diffstat (limited to 'cli/ops/runtime_compiler.rs')
-rw-r--r-- | cli/ops/runtime_compiler.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cli/ops/runtime_compiler.rs b/cli/ops/runtime_compiler.rs index b51cda95b..91e638033 100644 --- a/cli/ops/runtime_compiler.rs +++ b/cli/ops/runtime_compiler.rs @@ -80,12 +80,7 @@ async fn op_transpile( cli_state.check_unstable("Deno.transpile"); let args: TranspileArgs = serde_json::from_value(args)?; let global_state = cli_state.clone(); - let permissions = { - let state = state.borrow(); - state.borrow::<Permissions>().clone() - }; let result = - runtime_transpile(&global_state, permissions, &args.sources, &args.options) - .await?; + runtime_transpile(global_state, &args.sources, &args.options).await?; Ok(result) } |