node/test/fixtures/errors/throw_in_eval_anonymous.js
Antoine du Hamel caf478b72e
tools: enable linter in test/fixtures/errors
PR-URL: https://github.com/nodejs/node/pull/57701
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
2025-04-04 15:41:48 +02:00

10 lines
128 B
JavaScript

'use strict';
require('../../common');
Error.stackTraceLimit = 1;
eval(`
throw new Error('error in anonymous script');
`);