| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1800 TestKeysThrow({ | 1800 TestKeysThrow({ |
| 1801 get getOwnPropertyNames() { throw "myexn" } | 1801 get getOwnPropertyNames() { throw "myexn" } |
| 1802 }) | 1802 }) |
| 1803 | 1803 |
| 1804 TestKeysThrow({ | 1804 TestKeysThrow({ |
| 1805 get getOwnPropertyNames() { | 1805 get getOwnPropertyNames() { |
| 1806 return function() { throw "myexn" } | 1806 return function() { throw "myexn" } |
| 1807 }, | 1807 }, |
| 1808 }) | 1808 }) |
| 1809 | 1809 |
| 1810 TestKeysThrow([], { | 1810 TestKeysThrow({ |
| 1811 get getOwnPropertyNames() { | 1811 get getOwnPropertyNames() { |
| 1812 return function() { return [1, 2] } | 1812 return function() { return [1, 2] } |
| 1813 }, | 1813 }, |
| 1814 getOwnPropertyDescriptor: function(k) { throw "myexn" } | 1814 getOwnPropertyDescriptor: function(k) { throw "myexn" } |
| 1815 }) | 1815 }) |
| 1816 | 1816 |
| 1817 | 1817 |
| 1818 | 1818 |
| 1819 // Fixing (Object.freeze, Object.seal, Object.preventExtensions, | 1819 // Fixing (Object.freeze, Object.seal, Object.preventExtensions, |
| 1820 // Object.isFrozen, Object.isSealed, Object.isExtensible) | 1820 // Object.isFrozen, Object.isSealed, Object.isExtensible) |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2295 | 2295 |
| 2296 function TestConstructorWithProxyPrototype2(create, handler) { | 2296 function TestConstructorWithProxyPrototype2(create, handler) { |
| 2297 function C() {}; | 2297 function C() {}; |
| 2298 C.prototype = create(handler); | 2298 C.prototype = create(handler); |
| 2299 | 2299 |
| 2300 var o = new C; | 2300 var o = new C; |
| 2301 assertSame(C.prototype, Object.getPrototypeOf(o)); | 2301 assertSame(C.prototype, Object.getPrototypeOf(o)); |
| 2302 } | 2302 } |
| 2303 | 2303 |
| 2304 TestConstructorWithProxyPrototype(); | 2304 TestConstructorWithProxyPrototype(); |
| OLD | NEW |