🚀 Feature: Support running with node --frozen-intrinsics #5252
Labels
area: node.js
command-line-or-Node.js-specific
status: accepting prs
Mocha can use your help with this one!
type: bug
a defect, confirmed by a maintainer
type: feature
enhancement proposal
Feature Request Checklist
faq
label, but none matched my issue.Overview
When node is invoked with the experimental --frozen-intrinsics flag (added in Node.js 11.12 by nodejs/node#25685) it causes mocha to exit due to an uncaught
TypeError
from attempting to setError.stackTraceLimit
:It would be nice if mocha supported running under
--frozen-intrinsics
for testing code under this flag.Suggested Solution
Wrapping
mocha/lib/cli/cli.js
Line 45 in d3b2c38
in
try-catch
appears to be sufficient.Alternatives
Not supporting running under
--frozen-intrinsics
? (yet)Additional Info
No response
The text was updated successfully, but these errors were encountered: