| 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 18 matching lines...) Expand all Loading... |
| 29 // on the global object doesn't break invariants. | 29 // on the global object doesn't break invariants. |
| 30 Object.defineProperty(this, 'Object', {enumerable:true}); | 30 Object.defineProperty(this, 'Object', {enumerable:true}); |
| 31 | 31 |
| 32 var desc = Object.getOwnPropertyDescriptor(this, 'Object'); | 32 var desc = Object.getOwnPropertyDescriptor(this, 'Object'); |
| 33 assertTrue(desc.enumerable); | 33 assertTrue(desc.enumerable); |
| 34 assertTrue(desc.configurable); | 34 assertTrue(desc.configurable); |
| 35 assertFalse(desc.hasOwnProperty('get')); | 35 assertFalse(desc.hasOwnProperty('get')); |
| 36 assertFalse(desc.hasOwnProperty('set')); | 36 assertFalse(desc.hasOwnProperty('set')); |
| 37 assertTrue(desc.hasOwnProperty('value')); | 37 assertTrue(desc.hasOwnProperty('value')); |
| 38 assertTrue(desc.writable); | 38 assertTrue(desc.writable); |
| OLD | NEW |