diff options
author | Timothy Gu <timothygu99@gmail.com> | 2018-03-29 13:02:52 -0700 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2018-04-10 21:37:57 -0700 |
commit | 42d8976dff0e5a5f21d6c89457f348d9fdfd26fe (patch) | |
tree | e67513146b3bde0e8b4ac6cb842caa55dd23f7ae /test | |
parent | d1af1e4e59f6656428d57e685750f049e7830634 (diff) | |
download | android-node-v8-42d8976dff0e5a5f21d6c89457f348d9fdfd26fe.tar.gz android-node-v8-42d8976dff0e5a5f21d6c89457f348d9fdfd26fe.tar.bz2 android-node-v8-42d8976dff0e5a5f21d6c89457f348d9fdfd26fe.zip |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-buffer-of-no-deprecation.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/parallel/test-buffer-of-no-deprecation.js b/test/parallel/test-buffer-of-no-deprecation.js new file mode 100644 index 0000000000..92d78a5415 --- /dev/null +++ b/test/parallel/test-buffer-of-no-deprecation.js @@ -0,0 +1,8 @@ +// Flags: --pending-deprecation --no-warnings +'use strict'; + +const common = require('../common'); + +process.on('warning', common.mustNotCall()); + +Buffer.of(0, 1); |