1'use strict'; 2require('../../common'); 3Error.stackTraceLimit = 2; 4 5function test() { 6 const a = 'abc\0def'; 7 console.error(a); 8 throw new Error(a); 9} 10Object.defineProperty(test, 'name', { value: 'fun\0name' }); 11 12test(); 13