| // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Return abrupt if argumentsList is not an ArrayLike object. |
| 26.1.2 Reflect.construct ( target, argumentsList [, newTarget] ) |
| 4. Let args be CreateListFromArrayLike(argumentsList). |
| 7.3.17 CreateListFromArrayLike (obj [, elementTypes] ) |
| 3. If Type(obj) is not Object, throw a TypeError exception. |
| 4. Let len be ToLength(Get(obj, "length")). |
| Object.defineProperty(o, 'length', { |
| throw new Test262Error(); |
| assert.throws(Test262Error, function() { |
| Reflect.construct(fn, o); |
| assert.throws(TypeError, function() { |
| Reflect.construct(fn, 1); |