_sub-array-dummy.js 426 B

123456789101112131415
  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, configurable: true }
  10. });
  11. return SubArray;
  12. })();