Creating an Error and assigning to the column property breaks on the latest mobile and desktop Safari. Removing "use strict" in esprima is a workaround, but seems like not the ideal solution.
Relevant line:
https://github.com/jquery/esprima/blob/master/esprima.js#L2395
Test case:
(function () { "use strict"; var e = new Error(); e.column = 1; })();
--> TypeError: Attempted to assign to readonly property.
The effect is that esprima.parse on invalid code throws the above TypeError rather than the expected SyntaxError in Safari.
Creating an
Errorand assigning to thecolumnproperty breaks on the latest mobile and desktop Safari. Removing"use strict"in esprima is a workaround, but seems like not the ideal solution.Relevant line:
https://github.com/jquery/esprima/blob/master/esprima.js#L2395
Test case:
The effect is that
esprima.parseon invalid code throws the aboveTypeErrorrather than the expectedSyntaxErrorin Safari.