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();
|