OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 // Flags: --harmony-tostring |
| 6 |
| 7 function testJSONToString() { |
| 8 assertEquals('[object JSON]', "" + JSON); |
| 9 assertEquals("JSON", JSON[Symbol.toStringTag]); |
| 10 var desc = Object.getOwnPropertyDescriptor(JSON, Symbol.toStringTag); |
| 11 assertTrue(desc.configurable); |
| 12 assertFalse(desc.writable); |
| 13 assertEquals("JSON", desc.value); |
| 14 } |
| 15 testJSONToString(); |
OLD | NEW |