-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
errors: print original exception context
When --enable-source-maps is set, the error context displayed above the stack trace now shows original source rather than transpiled. Backport-PR-URL: #37700 PR-URL: #33491 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
- Loading branch information
Showing
18 changed files
with
270 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const React = { | ||
createElement: () => { | ||
("あ 🐕 🐕", throw Error("an error")); | ||
} | ||
}; | ||
|
||
const profile = ( | ||
<div> | ||
<img src="avatar.png" className="profile" /> | ||
<h3>{["hello"]}</h3> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Assignment: | ||
number = 42 | ||
opposite = true | ||
|
||
# Conditions: | ||
number = -42 if opposite | ||
|
||
# Functions: | ||
square = (x) -> x * x | ||
|
||
# Arrays: | ||
list = [1, 2, 3, 4, 5] | ||
|
||
# Objects: | ||
math = | ||
root: Math.sqrt | ||
square: square | ||
cube: (x) -> x * square x | ||
|
||
# Splats: | ||
race = (winner, runners...) -> | ||
print winner, runners | ||
|
||
# Existence: | ||
if true | ||
alert "I knew it!" | ||
|
||
# Array comprehensions: | ||
cubes = (math.cube num for num in list) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Flags: --enable-source-maps | ||
|
||
'use strict'; | ||
require('../common'); | ||
require('../fixtures/source-map/tabs.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
*tabs.coffee:26 | ||
alert "I knew it!" | ||
^ | ||
|
||
ReferenceError: alert is not defined | ||
at Object.<anonymous> (*tabs.coffee:39:5) | ||
-> *tabs.coffee:26:2 | ||
at Object.<anonymous> (*tabs.coffee:53:4) | ||
-> *tabs.coffee:1:14 | ||
at Module._compile (internal/modules/cjs/loader.js:* | ||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:* | ||
at Module.load (internal/modules/cjs/loader.js:* | ||
at Function.Module._load (internal/modules/cjs/loader.js:* | ||
at Module.require (internal/modules/cjs/loader.js:* | ||
at require (internal/modules/cjs/helpers.js:* | ||
at Object.<anonymous> (*source_map_reference_error_tabs.js:* | ||
at Module._compile (internal/modules/cjs/loader.js:* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.