b8a3b69e5d768e01b065c0c919c0af8b07843107ea23a09153b89d6eae83a15f0dc3e8f4b2c256a1d93612fbd51d4382bb90f0f28d452ec676e3f4a7c945d2 525 B

12345678910111213
  1. 'use strict';
  2. var uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');
  3. var classof = require('../internals/classof-raw');
  4. var $TypeError = TypeError;
  5. // Includes
  6. // - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
  7. // - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
  8. module.exports = uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
  9. if (classof(O) !== 'ArrayBuffer') throw new $TypeError('ArrayBuffer expected');
  10. return O.byteLength;
  11. };