mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
d6e626d54c
PR-URL: https://github.com/nodejs/node/pull/44197 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Michaël Zasso <targos@protonmail.com>
25 lines
366 B
JavaScript
25 lines
366 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
Error.stackTraceLimit = 4;
|
|
|
|
const assert = require('assert');
|
|
|
|
let err;
|
|
// Create some random error frames.
|
|
(function a() {
|
|
(function b() {
|
|
(function c() {
|
|
err = new Error('test error');
|
|
})();
|
|
})();
|
|
})();
|
|
|
|
(function x() {
|
|
(function y() {
|
|
(function z() {
|
|
assert.ifError(err);
|
|
})();
|
|
})();
|
|
})();
|