diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/error.rs | 6 | ||||
-rw-r--r-- | core/extensions.rs | 2 | ||||
-rw-r--r-- | core/lib.rs | 4 | ||||
-rw-r--r-- | core/ops_builtin.rs | 2 | ||||
-rw-r--r-- | core/runtime.rs | 4 | ||||
-rw-r--r-- | core/snapshot_util.rs | 2 |
6 files changed, 10 insertions, 10 deletions
diff --git a/core/error.rs b/core/error.rs index 79b37d529..4b560fb5b 100644 --- a/core/error.rs +++ b/core/error.rs @@ -272,7 +272,7 @@ impl JsError { if let (Some(file_name), Some(line_number)) = (&frame.file_name, frame.line_number) { - if !file_name.trim_start_matches('[').starts_with("deno:") { + if !file_name.trim_start_matches('[').starts_with("internal:") { source_line = get_source_line( file_name, line_number, @@ -424,7 +424,7 @@ impl JsError { if let (Some(file_name), Some(line_number)) = (&frame.file_name, frame.line_number) { - if !file_name.trim_start_matches('[').starts_with("deno:") { + if !file_name.trim_start_matches('[').starts_with("internal:") { source_line = get_source_line( file_name, line_number, @@ -438,7 +438,7 @@ impl JsError { } } else if let Some(frame) = frames.first() { if let Some(file_name) = &frame.file_name { - if !file_name.trim_start_matches('[').starts_with("deno:") { + if !file_name.trim_start_matches('[').starts_with("internal:") { source_line = msg .get_source_line(scope) .map(|v| v.to_rust_string_lossy(scope)); diff --git a/core/extensions.rs b/core/extensions.rs index 2cb16b125..129e7b62a 100644 --- a/core/extensions.rs +++ b/core/extensions.rs @@ -216,7 +216,7 @@ impl ExtensionBuilder { /// Example: /// ```ignore /// include_js_files!( -/// prefix "deno:extensions/hello", +/// prefix "internal:extensions/hello", /// "01_hello.js", /// "02_goodbye.js", /// ) diff --git a/core/lib.rs b/core/lib.rs index 2333ff75f..461b4fd20 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -134,12 +134,12 @@ pub mod _ops { /// A helper macro that will return a call site in Rust code. Should be /// used when executing internal one-line scripts for JsRuntime lifecycle. /// -/// Returns a string in form of: "`[deno:<filename>:<line>:<column>]`" +/// Returns a string in form of: "`[internal:<filename>:<line>:<column>]`" #[macro_export] macro_rules! located_script_name { () => { format!( - "[deno:{}:{}:{}]", + "[internal:{}:{}:{}]", std::file!(), std::line!(), std::column!() diff --git a/core/ops_builtin.rs b/core/ops_builtin.rs index 184e942b7..87504f41d 100644 --- a/core/ops_builtin.rs +++ b/core/ops_builtin.rs @@ -21,7 +21,7 @@ use std::rc::Rc; pub(crate) fn init_builtins() -> Extension { Extension::builder("deno_builtins") .js(include_js_files!( - prefix "deno:core", + prefix "internal:core", "00_primordials.js", "01_core.js", "02_error.js", diff --git a/core/runtime.rs b/core/runtime.rs index 29a6ca450..903bbfbc4 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -3887,8 +3887,8 @@ assertEquals(1, notify_return_value); ) .unwrap_err(); let error_string = error.to_string(); - // Test that the script specifier is a URL: `deno:<repo-relative path>`. - assert!(error_string.contains("deno:core/01_core.js")); + // Test that the script specifier is a URL: `internal:<repo-relative path>`. + assert!(error_string.contains("internal:core/01_core.js")); } #[test] diff --git a/core/snapshot_util.rs b/core/snapshot_util.rs index b35cabbfa..8e397e262 100644 --- a/core/snapshot_util.rs +++ b/core/snapshot_util.rs @@ -39,7 +39,7 @@ pub fn create_snapshot(create_snapshot_options: CreateSnapshotOptions) { let display_path_str = display_path.display().to_string(); js_runtime .execute_script( - &("deno:".to_string() + &display_path_str.replace('\\', "/")), + &("internal:".to_string() + &display_path_str.replace('\\', "/")), &std::fs::read_to_string(&file).unwrap(), ) .unwrap(); |