| 1 |
// Copyright (C) 2015 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
/*--- |
| 4 |
es6id: 26.1.10 |
| 5 |
description: > |
| 6 |
Throws a TypeError if target is not an Object. |
| 7 |
info: | |
| 8 |
26.1.10 Reflect.isExtensible (target) |
| 9 |
|
| 10 |
1. If Type(target) is not Object, throw a TypeError exception. |
| 11 |
... |
| 12 |
---*/ |
| 13 |
|
| 14 |
assert.throws(TypeError, function() { |
| 15 |
Reflect.isExtensible(1); |
| 16 |
}); |
| 17 |
|
| 18 |
assert.throws(TypeError, function() { |
| 19 |
Reflect.isExtensible(null); |
| 20 |
}); |
| 21 |
|
| 22 |
assert.throws(TypeError, function() { |
| 23 |
Reflect.isExtensible(undefined); |
| 24 |
}); |
| 25 |
|
| 26 |
assert.throws(TypeError, function() { |
| 27 |
Reflect.isExtensible(''); |
| 28 |
}); |