OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 |
| 6 var accessor_to_data_case = (function() { |
| 7 var v = {}; |
| 8 Object.defineProperty(v, "foo", { get: function() { return 42; }, configurable
: true}); |
| 9 |
| 10 var obj = {}; |
| 11 obj["boom"] = v; |
| 12 |
| 13 Object.defineProperty(v, "foo", { value: 0, writable: true, configurable: true
}); |
| 14 return obj; |
| 15 })(); |
| 16 |
| 17 |
| 18 var data_to_accessor_case = (function() { |
| 19 var v = {}; |
| 20 Object.defineProperty(v, "bar", { value: 0, writable: true, configurable: true
}); |
| 21 |
| 22 var obj = {}; |
| 23 obj["bam"] = v; |
| 24 |
| 25 Object.defineProperty(v, "bar", { get: function() { return 42; }, configurable
: true}); |
| 26 return obj; |
| 27 })(); |
OLD | NEW |