MCPcopy Index your code
hub / github.com/nodejs/node / checkMutate

Function checkMutate

test/fixtures/snapshot/mutate-error-stack-trace-limit.js:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14function checkMutate() {
15 // Check that mutation to Error.stackTraceLimit is effective in the snapshot
16 // builder script.
17 assert.strictEqual(typeof Error.stackTraceLimit, 'number');
18 Error.stackTraceLimit = 0;
19 assert.strictEqual(getError('', 30), 'Error');
20}
21
22setDeserializeMainFunction(() => {
23 // Check that the mutation is preserved in the deserialized main function.

Calls 1

getErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…