Closed GerHobbelt closed 8 years ago
Hey @GerHobbelt thanks for flagging this - I noticed this a while ago and have a fix for it - just haven't pushed it. Basically as you point out, any function with 'use strict' in it will cause this error when we try to access the arguments property. Cute stack doesn't even currently use the arguments, it's just in there for future use.
As for the fix, I figured out a way to do it without try catch (which I'm not even sure will/can work as expected within prepareStackTrace) and without losing potential to grab args for non stric funcs.
I'll take a look at my fix and get it in, cheers
The use of
cute-stack
causes a fatal abort when using as a library in an npm/gulp plugin, e.g. ingulp-lint-everything
, where it is used like this:Some debugging showed this bit of code to be the culprit: the commented line below is the edit required to make
gulp-lint-everything
run (Node v0.10.26 on MSys/Win8/64)