11 lines
291 B
JavaScript
11 lines
291 B
JavaScript
'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'
|
|
}));
|