mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
c5f54b1fad
When a user executes code in the REPLServer which generates an exception, there is no need to display the REPLServer internal stack frames. PR-URL: https://github.com/nodejs/node/pull/15351 Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Refs: https://github.com/nodejs/node/pull/9601
19 lines
162 B
JavaScript
19 lines
162 B
JavaScript
'use strict';
|
|
|
|
function a() {
|
|
b();
|
|
}
|
|
|
|
function b() {
|
|
c();
|
|
}
|
|
|
|
function c() {
|
|
d(function() { throw new Error('Whoops!'); });
|
|
}
|
|
|
|
function d(f) {
|
|
f();
|
|
}
|
|
|
|
a(); |