PR-URL: https://github.com/nodejs/node/pull/51179 Refs: https://github.com/nodejs/node/issues/42982 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
14 lines
451 B
JavaScript
14 lines
451 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const assert = require('node:assert');
|
|
const { test } = require('node:test');
|
|
|
|
test('should emit deprecation warning DEP0165', async () => {
|
|
const { code, stdout, stderr } = await common.spawnPromisified(
|
|
process.execPath, ['--trace-atomics-wait', '-e', '{}']
|
|
);
|
|
assert.match(stderr, /\[DEP0165\] DeprecationWarning:/);
|
|
assert.strictEqual(stdout, '');
|
|
assert.strictEqual(code, 0);
|
|
});
|