_sub-array-dummy.js 429 B

12345678910111213141516
  1. 'use strict';
  2. var setPrototypeOf = require('../object/set-prototype-of');
  3. module.exports = (function () {
  4. var SubArray;
  5. if (!setPrototypeOf) return null;
  6. SubArray = function () { Array.apply(this, arguments); };
  7. setPrototypeOf(SubArray, Array);
  8. SubArray.prototype = Object.create(Array.prototype, {
  9. constructor: { value: SubArray, enumerable: false, writable: true,
  10. configurable: true }
  11. });
  12. return SubArray;
  13. }());