node/test/fixtures/disable-warning.js
Ethan Arrowood a0b66383f1
src: add --disable-warning option
Co-authored-by: Geoffrey Booth <webadmin@geoffreybooth.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/50661
Fixes: https://github.com/nodejs/node/issues/30810
Fixes: https://github.com/nodejs/node/issues/47478
Fixes: https://github.com/nodejs/node/issues/46862
Fixes: https://github.com/nodejs/node/issues/40940
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
2023-11-21 20:30:02 +00:00

16 lines
289 B
JavaScript

'use strict';
process.emitWarning('Deprecation Warning 1', {
code: 'DEP1',
type: 'DeprecationWarning'
});
process.emitWarning('Deprecation Warning 2', {
code: 'DEP2',
type: 'DeprecationWarning'
});
process.emitWarning('Experimental Warning', {
type: 'ExperimentalWarning'
});