node/test/parallel/test-buffer-of-no-deprecation.js
Timothy Gu 42d8976dff
buffer: do not emit deprecation notice on Buffer.of
PR-URL: https://github.com/nodejs/node/pull/19682
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2018-04-10 21:37:57 -07:00

9 lines
162 B
JavaScript

// Flags: --pending-deprecation --no-warnings
'use strict';
const common = require('../common');
process.on('warning', common.mustNotCall());
Buffer.of(0, 1);