mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
PR-URL: https://github.com/nodejs/node/pull/47498 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
13 lines
223 B
JavaScript
13 lines
223 B
JavaScript
'use strict';
|
|
require('../../common');
|
|
Error.stackTraceLimit = 2;
|
|
|
|
function test() {
|
|
const a = 'abc\0def';
|
|
console.error(a);
|
|
throw new Error(a);
|
|
}
|
|
Object.defineProperty(test, 'name', { value: 'fun\0name' });
|
|
|
|
test();
|