1// Flags: --no-warnings --pending-deprecation 2'use strict'; 3 4const common = require('../common'); 5 6process.on('warning', common.mustNotCall('A warning should not be emitted')); 7 8// With the --pending-deprecation flag, the deprecation warning for 9// new Buffer() should not be emitted when Uint8Array methods are called. 10 11Buffer.from('abc').map((i) => i); 12Buffer.from('abc').filter((i) => i); 13Buffer.from('abc').slice(1, 2); 14