Files
node/test/fixtures/source-map/emptyStackError.js
telenord d90219d9ad test: test cover cases when trace is empty
cover prepare_stack_trace in case when trace is empty
PR-URL: https://github.com/nodejs/node/pull/30311
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
2019-11-24 11:48:28 +05:30

7 lines
85 B
JavaScript

"use strict";
Error.stackTraceLimit = 0;
throw new RangeError('emptyStackError');