| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Flags: --harmony-reflect | |
| 6 | |
| 7 // TODO(neis): Test with proxies. | 5 // TODO(neis): Test with proxies. |
| 8 | 6 |
| 9 | 7 |
| 10 | 8 |
| 11 //////////////////////////////////////////////////////////////////////////////// | 9 //////////////////////////////////////////////////////////////////////////////// |
| 12 // (Auxiliaries) | 10 // (Auxiliaries) |
| 13 | 11 |
| 14 | 12 |
| 15 "use strict"; | 13 "use strict"; |
| 16 | 14 |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 assertThrows(function() { Reflect.preventExtensions(); }, TypeError); | 561 assertThrows(function() { Reflect.preventExtensions(); }, TypeError); |
| 564 assertThrows(function() { Reflect.preventExtensions(42); }, TypeError); | 562 assertThrows(function() { Reflect.preventExtensions(42); }, TypeError); |
| 565 assertThrows(function() { Reflect.preventExtensions(null); }, TypeError); | 563 assertThrows(function() { Reflect.preventExtensions(null); }, TypeError); |
| 566 })(); | 564 })(); |
| 567 | 565 |
| 568 | 566 |
| 569 // See reflect-prevent-extensions.js for further tests. | 567 // See reflect-prevent-extensions.js for further tests. |
| 570 | 568 |
| 571 // TODO(neis): Need proxies to test the situation where | 569 // TODO(neis): Need proxies to test the situation where |
| 572 // [[preventExtensions]] returns false. | 570 // [[preventExtensions]] returns false. |
| OLD | NEW |