You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
244 B

3 months ago
  1. 'use strict';
  2. var classof = require('../internals/classof');
  3. var $TypeError = TypeError;
  4. module.exports = function (argument) {
  5. if (classof(argument) === 'DataView') return argument;
  6. throw new $TypeError('Argument is not a DataView');
  7. };