blob: 32351b7a4a6fad1c47ae93c38adb1fc7a14c6124 [file] [log] [blame] [edit]
'use strict';
const common = require('../common');
const { Worker } = require('worker_threads');
const worker = new Worker('function f() { f(); } f();', { eval: true });
worker.on('error', common.expectsError({
constructor: RangeError,
message: 'Maximum call stack size exceeded'
}));