dougwilson / nodejs-depd

Deprecate all the things
MIT License
325 stars 87 forks source link

Add unit test for --disallow-code-generation-from-strings #43

Open davidje13 opened 3 years ago

davidje13 commented 3 years ago

Alternative testing approach based on discussion in #41

This introduces a failing test for Node 9+. This is separate from the fix so that it can be combined with any of the existing PRs.

I have tested the test with the code from #42 and it passes, as expected.

davidje13 commented 3 years ago

@dougwilson I took the approach you suggested. This certainly simplifies things and means it can still support Node 0.8 (no need for the cross-env package).

As noted in the description, this is an isolated test change so that it can be combined with any of the 3 PRs which offer fixes (#26 / #33 / #42), or another approach.


btw, since Node 5.12 is consistently failing in Travis but not Appveyor, I'd suggest it's probably a bad cache. Are you able to clear the Travis cache for 5.12? The only other option I can think of is that browserify has somehow broken on Node 5.12 but only on Linux.