array-buffer-not-detached.js 231 B

123456789
  1. 'use strict';
  2. var isDetached = require('../internals/array-buffer-is-detached');
  3. var $TypeError = TypeError;
  4. module.exports = function (it) {
  5. if (isDetached(it)) throw new $TypeError('ArrayBuffer is detached');
  6. return it;
  7. };