Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 36.4k
module: fix error first line col offset#2867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -47,7 +47,6 @@ Module.wrapper = NativeModule.wrapper; | ||
| Module.wrap = NativeModule.wrap; | ||
| Module._debug = util.debuglog('module'); | ||
| // We use this alias for the preprocessor that filters it out | ||
| const debug = Module._debug; | ||
| @@ -401,7 +400,8 @@ Module.prototype._compile = function(content, filename) { | ||
| // create wrapper function | ||
| var wrapper = Module.wrap(content); | ||
| var compiledWrapper = runInThisContext(wrapper, { filename: filename }); | ||
| var compiledWrapper = runInThisContext(wrapper, | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the linter complain about this? ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does not | ||
| { filename: filename, lineOffset: -1 }); | ||
| if (global.v8debug) { | ||
| if (!resolvedArgv) { | ||
| // we enter the repl if we're not given a filename argument. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to also update docs on Script constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the docs in two places with the lineOffset and columnOffset parameters, and also added a missing filename and timeout parameter listings.