You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just corrected a bug on the line number routine, when running on windows: the drive letter got in the way, and the routine returned the file path instead of the line number. I got around it by using a regex to extract the line number. Haven't tested it on Linux, but should work okay, too.
Error: This is an stack trace test
at Object. (C:\Users\Haroldo\test.js:1:69)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)
As you can see, the great villain here is the drive letter, whose
following colon confuses the routine that would pick the line number.
Em 18/03/2012 06:33, Igor Urminček escreveu:
can you please send how does e.stack looks on windows? I want to avoid try-catch block because they are slow.
Reply to this email directly or view it on GitHub: #10 (comment)
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
I've just corrected a bug on the line number routine, when running on windows: the drive letter got in the way, and the routine returned the file path instead of the line number. I got around it by using a regex to extract the line number. Haven't tested it on Linux, but should work okay, too.