3 var setPrototypeOf = require('../object/set-prototype-of')
4 , isExtensible = require('./_is-extensible');
6 module.exports = (function () {
9 if (isExtensible) return require('./_sub-array-dummy');
11 if (!setPrototypeOf) return null;
12 SubArray = function () {
13 var arr = Array.apply(this, arguments);
14 setPrototypeOf(arr, SubArray.prototype);
17 setPrototypeOf(SubArray, Array);
18 SubArray.prototype = Object.create(Array.prototype, {
19 constructor: { value: SubArray, enumerable: false, writable: true,