summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/ops/runtime_compiler.rs2
-rw-r--r--cli/tests/integration_tests.rs6
2 files changed, 5 insertions, 3 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(),
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index ae905840d..7ba296944 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -986,7 +986,7 @@ itest!(workers {
});
itest!(compiler_api {
- args: "test --reload compiler_api_test.ts",
+ args: "test --unstable --reload compiler_api_test.ts",
output: "compiler_api_test.out",
});
@@ -1468,12 +1468,12 @@ itest!(import_meta {
});
itest!(lib_ref {
- args: "run --reload lib_ref.ts",
+ args: "run --unstable --reload lib_ref.ts",
output: "lib_ref.ts.out",
});
itest!(lib_runtime_api {
- args: "run --reload lib_runtime_api.ts",
+ args: "run --unstable --reload lib_runtime_api.ts",
output: "lib_runtime_api.ts.out",
});