diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-22 23:30:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-22 23:30:03 +0200 |
| commit | 68fd7a927b26c3e72cf73515821450f3aa252014 (patch) | |
| tree | 61536703a37c1584eef8f69f954418a68f9533f8 /cli/build.rs | |
| parent | cf0c49191e9be862027f74f39318a3479fce3ba2 (diff) | |
refactor(core): support error stack, remove js_check (#7629)
This commit adds support for stack traces in "deno_core".
Implementation of "Display" trait for "JsError" has been updated
and in consequence "deno_core::js_check" became obsolete and
removed.
Diffstat (limited to 'cli/build.rs')
| -rw-r--r-- | cli/build.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cli/build.rs b/cli/build.rs index d969a3415..64cef3082 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -2,7 +2,6 @@ mod op_fetch_asset; -use deno_core::js_check; use deno_core::JsRuntime; use deno_core::RuntimeOptions; use std::collections::HashMap; @@ -24,10 +23,12 @@ fn create_snapshot( println!("cargo:rerun-if-changed={}", file.display()); let display_path = file.strip_prefix(display_root).unwrap(); let display_path_str = display_path.display().to_string(); - js_check(isolate.execute( - &("deno:".to_string() + &display_path_str.replace('\\', "/")), - &std::fs::read_to_string(&file).unwrap(), - )); + isolate + .execute( + &("deno:".to_string() + &display_path_str.replace('\\', "/")), + &std::fs::read_to_string(&file).unwrap(), + ) + .unwrap(); } let snapshot = isolate.snapshot(); |
