File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ const {
5656 StringPrototypeCharCodeAt,
5757 StringPrototypeEndsWith,
5858 StringPrototypeIndexOf,
59- StringPrototypeLastIndexOf,
6059 StringPrototypeRepeat,
6160 StringPrototypeSlice,
6261 StringPrototypeSplit,
@@ -1650,8 +1649,8 @@ function loadTS(module, filename) {
16501649
16511650function reconstructErrorStack ( err , parentPath , parentSource ) {
16521651 const errLine = StringPrototypeSplit (
1653- StringPrototypeSlice ( err . stack , StringPrototypeLastIndexOf (
1654- err . stack , ' at ' ) ) , '\n' , 1 ) [ 0 ] ;
1652+ StringPrototypeSlice ( err . stack , StringPrototypeIndexOf (
1653+ err . stack , ' at ' ) ) , '\n' , 2 ) [ 1 ] ;
16551654 const { 1 : line , 2 : col } =
16561655 RegExpPrototypeExec ( / ( \d + ) : ( \d + ) \) / , errLine ) || [ ] ;
16571656 if ( line && col ) {
You can’t perform that action at this time.
0 commit comments