 Chromium Code Reviews
 Chromium Code Reviews Issue 2586763002:
  [intl] Create the Intl constructors to C++  (Closed)
    
  
    Issue 2586763002:
  [intl] Create the Intl constructors to C++  (Closed) 
  | OLD | NEW | 
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 let descriptor; | |
| 6 | |
| 7 descriptor = Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, Symb ol.toStringTag); | |
| 
Yang
2016/12/21 13:43:39
80char limit
 | |
| 8 | |
| 9 assertEquals("Object", descriptor.value); | |
| 10 assertFalse(descriptor.writable); | |
| 11 assertFalse(descriptor.enumerable); | |
| 12 assertTrue(descriptor.configurable); | |
| 13 | |
| 14 descriptor = Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, Symbol .toStringTag); | |
| 15 | |
| 16 assertEquals("Object", descriptor.value); | |
| 17 assertFalse(descriptor.writable); | |
| 18 assertFalse(descriptor.enumerable); | |
| 19 assertTrue(descriptor.configurable); | |
| 20 | |
| 21 descriptor = Object.getOwnPropertyDescriptor(Intl.Collator.prototype, Symbol.toS tringTag); | |
| 22 | |
| 23 assertEquals("Object", descriptor.value); | |
| 24 assertFalse(descriptor.writable); | |
| 25 assertFalse(descriptor.enumerable); | |
| 26 assertTrue(descriptor.configurable); | |
| OLD | NEW |