1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 00:59:24 -05:00

Make runtime compile ops unstable (#4912)

This commit is contained in:
Ryan Dahl 2020-04-27 09:59:34 -04:00 committed by GitHub
parent 1f52d180c0
commit 4036be2ab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -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(),

View file

@ -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",
});