11cb0ef41Sopenharmony_ci// Flags: --no-warnings --pending-deprecation
21cb0ef41Sopenharmony_ci'use strict';
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ciconst common = require('../common');
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ciprocess.on('warning', common.mustNotCall('A warning should not be emitted'));
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ci// With the --pending-deprecation flag, the deprecation warning for
91cb0ef41Sopenharmony_ci// new Buffer() should not be emitted when Uint8Array methods are called.
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ciBuffer.from('abc').map((i) => i);
121cb0ef41Sopenharmony_ciBuffer.from('abc').filter((i) => i);
131cb0ef41Sopenharmony_ciBuffer.from('abc').slice(1, 2);
14