3449ca79e0058b11afba491ee931ebaf15ee0662a12fba1288eea4830608e0d7232a5dd69fc2949ca65beb59a80a7decfeaaed090b41fde31351234dbc8743 395 B

1234567891011
  1. 'use strict';
  2. var classof = require('../internals/classof');
  3. var $TypeError = TypeError;
  4. // Perform ? RequireInternalSlot(argument, [[TypedArrayName]])
  5. // If argument.[[TypedArrayName]] is not "Uint8Array", throw a TypeError exception
  6. module.exports = function (argument) {
  7. if (classof(argument) === 'Uint8Array') return argument;
  8. throw new $TypeError('Argument is not an Uint8Array');
  9. };