summaryrefslogtreecommitdiff
path: root/cli/js_errors.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-03-30 14:45:36 -0400
committerGitHub <noreply@github.com>2019-03-30 14:45:36 -0400
commitc9614d86c190b98bd8f0df9e17272387c3bad1d5 (patch)
tree68d9054cabb8a829beac72024d48c37f0fce7321 /cli/js_errors.rs
parentad3cbc50fb255f287a890a28f158f6842d335538 (diff)
Move //libdeno to //core/libdeno (#2015)
Fixes some sed errors introduced in c43cfe. Unfortunately moving libdeno required splitting build.rs into two parts, one for cli and one for core. I've also removed the arm64 build - it's complicating things at this re-org and we're not even testing it. I need to swing back to it and get tools/test.py running for it.
Diffstat (limited to 'cli/js_errors.rs')
-rw-r--r--cli/js_errors.rs20
1 files changed, 11 insertions, 9 deletions
diff --git a/cli/js_errors.rs b/cli/js_errors.rs
index 1cb9cb3a1..b478849d2 100644
--- a/cli/js_errors.rs
+++ b/cli/js_errors.rs
@@ -64,9 +64,9 @@ impl<'a> fmt::Display for JSErrorColor<'a> {
let e = self.0;
if e.script_resource_name.is_some() {
let script_resource_name = e.script_resource_name.as_ref().unwrap();
- // Avoid showing internal code from gen/bundle/main.js
- if script_resource_name != "gen/bundle/main.js"
- && script_resource_name != "gen/bundle/compiler.js"
+ // Avoid showing internal code from gen/cli/bundle/main.js
+ if script_resource_name != "gen/cli/bundle/main.js"
+ && script_resource_name != "gen/cli/bundle/compiler.js"
{
if e.line_number.is_some() && e.start_column.is_some() {
assert!(e.line_number.is_some());
@@ -216,14 +216,16 @@ fn builtin_source_map(_: &str) -> Option<Vec<u8>> {
#[cfg(not(feature = "check-only"))]
fn builtin_source_map(script_name: &str) -> Option<Vec<u8>> {
match script_name {
- "gen/bundle/main.js" => Some(
- include_bytes!(concat!(env!("GN_OUT_DIR"), "/gen/bundle/main.js.map"))
- .to_vec(),
+ "gen/cli/bundle/main.js" => Some(
+ include_bytes!(concat!(
+ env!("GN_OUT_DIR"),
+ "/gen/cli/bundle/main.js.map"
+ )).to_vec(),
),
- "gen/bundle/compiler.js" => Some(
+ "gen/cli/bundle/compiler.js" => Some(
include_bytes!(concat!(
env!("GN_OUT_DIR"),
- "/gen/bundle/compiler.js.map"
+ "/gen/cli/bundle/compiler.js.map"
)).to_vec(),
),
_ => None,
@@ -381,7 +383,7 @@ mod tests {
frames: vec![StackFrame {
line: 11,
column: 12,
- script_name: "gen/bundle/main.js".to_string(),
+ script_name: "gen/cli/bundle/main.js".to_string(),
function_name: "setLogDebug".to_string(),
is_eval: false,
is_constructor: false,