diff options
| author | Luca Casonato <lucacasonato@yahoo.com> | 2020-04-30 17:23:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-30 11:23:40 -0400 |
| commit | 80e22111416751ce34dbc5cb32ffa9f293517370 (patch) | |
| tree | 5b3fe5d16ee07143e5dcb2c766a1f48c296ad9d6 /cli/ops | |
| parent | 4993a6504b4b447e0e02454094cffb02ee18c081 (diff) | |
Unstable methods should not appear in runtime or d.ts (#4957)
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Diffstat (limited to 'cli/ops')
| -rw-r--r-- | cli/ops/runtime.rs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/cli/ops/runtime.rs b/cli/ops/runtime.rs index 96bf451ed..0d92b0692 100644 --- a/cli/ops/runtime.rs +++ b/cli/ops/runtime.rs @@ -24,18 +24,19 @@ fn op_start( Ok(JsonOp::Sync(json!({ // TODO(bartlomieju): `cwd` field is not used in JS, remove? - "cwd": &env::current_dir().unwrap(), - "pid": std::process::id(), "args": gs.flags.argv.clone(), - "repl": gs.flags.subcommand == DenoSubcommand::Repl, - "location": state.main_module.to_string(), + "cwd": &env::current_dir().unwrap(), "debugFlag": gs.flags.log_level.map_or(false, |l| l == log::Level::Debug), - "versionFlag": gs.flags.version, - "v8Version": version::v8(), "denoVersion": version::DENO, - "tsVersion": version::TYPESCRIPT, + "location": state.main_module.to_string(), "noColor": !colors::use_color(), + "pid": std::process::id(), + "repl": gs.flags.subcommand == DenoSubcommand::Repl, "target": env!("TARGET"), + "tsVersion": version::TYPESCRIPT, + "unstableFlag": gs.flags.unstable, + "v8Version": version::v8(), + "versionFlag": gs.flags.version, }))) } |
