node/test/fixtures/source-map/emptyStackError.js
telenord 0a068db450
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-12-17 17:06:50 -05:00

6 lines
85 B
JavaScript

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