diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-04-27 09:59:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 09:59:34 -0400 |
commit | 4036be2ab2db0c5f146d1c4246e6d5acb337f9ec (patch) | |
tree | c23c0754e453dc9ce5aa6e53d4b196f3e06413b1 /cli/ops/runtime_compiler.rs | |
parent | 1f52d180c08b5fc060ecf9d24e4d7f31377479b7 (diff) |
Make runtime compile ops unstable (#4912)
Diffstat (limited to 'cli/ops/runtime_compiler.rs')
-rw-r--r-- | cli/ops/runtime_compiler.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/ops/runtime_compiler.rs b/cli/ops/runtime_compiler.rs index 666e243dc..4c4110e1e 100644 --- a/cli/ops/runtime_compiler.rs +++ b/cli/ops/runtime_compiler.rs @@ -27,6 +27,7 @@ fn op_compile( args: Value, _zero_copy: Option<ZeroCopyBuf>, ) -> Result<JsonOp, OpError> { + state.check_unstable("Deno.compile"); let args: CompileArgs = serde_json::from_value(args)?; Ok(JsonOp::Async(runtime_compile( state.borrow().global_state.clone(), @@ -48,6 +49,7 @@ fn op_transpile( args: Value, _zero_copy: Option<ZeroCopyBuf>, ) -> Result<JsonOp, OpError> { + state.check_unstable("Deno.transpile"); let args: TranspileArgs = serde_json::from_value(args)?; Ok(JsonOp::Async(runtime_transpile( state.borrow().global_state.clone(), |