introduce unstable flag, make a few things unstable (#4892)

This commit is contained in:
Ryan Dahl 2020-04-25 09:31:54 -04:00 committed by GitHub
parent b28e60ecaf
commit 0c47cd6785
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 49 additions and 0 deletions

View file

@ -39,6 +39,7 @@ pub fn op_open_plugin(
args: Value,
_zero_copy: Option<ZeroCopyBuf>,
) -> Result<JsonOp, OpError> {
state.check_unstable("Deno.openPlugin");
let args: OpenPluginArgs = serde_json::from_value(args).unwrap();
let filename = deno_fs::resolve_from_cwd(Path::new(&args.filename))?;