shift-parser
Advanced tools
Comparing version
@@ -166,4 +166,10 @@ "use strict"; | ||
_this.index = index; | ||
_this.line = line; | ||
_this.column = column; | ||
// Safari defines these properties as non-writable and non-configurable on Error objects | ||
try { | ||
_this.line = line; | ||
_this.column = column; | ||
} catch (e) {} | ||
// define these as well so Safari still has access to this info | ||
_this.parseErrorLine = line; | ||
_this.parseErrorColumn = column; | ||
_this.description = msg; | ||
@@ -170,0 +176,0 @@ _this.message = "[" + line + ":" + column + "]: " + msg; |
{ | ||
"name": "shift-parser", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "ECMAScript parser that produces a Shift format AST", | ||
@@ -5,0 +5,0 @@ "author": "Shape Security Labs", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
281563
1.01%11
10%5647
0.11%0
-100%83
Infinity%