Closed timkelty closed 8 years ago
It looks like the disallow-dangling-underscores.js file is setting __proto__
to true, which is throwing an error because it can only be set to null
or an object. Not sure why this is only happening when harmony-reflect is required. Maybe harmony-reflect is polyfilling something that node's es6 implementation doesn't have yet?
Hey Karl, fancy meeting you here :-).
So there is our culprit - https://github.com/tvcutsem/harmony-reflect/blob/e66cbac79158b6e32c65e67b53a79d094d24dced/reflect.js#L1632-L1636, i guess now it is pretty much self-explanatory.
We shouldn't use an object there to identify our exception anyway.
Hey Oleg!! It gives me great confidence in this project to see you as a major contributor. :) Thanks so much for the quick turnaround. Hope to see you IRL sometime in the next year.
Thanks, hope to see you too :-).
Thanks @markelog!
A dependency I was using started using harmony-reflect, which started throwing errors when required in tandem with
jscs
:If I set
disallowDanglingUnderscores
to false, the error goes away.https://github.com/jscs-dev/node-jscs/blob/c6a87c1637b27c1c99d01b9986fd164eed186855/lib/rules/disallow-dangling-underscores.js#L72-L90