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 // Flags: --intl-extra |
| 6 |
| 7 // Turning on the creates the non-standard properties |
| 8 |
| 9 var dtf = new Intl.DateTimeFormat(['en']); |
| 10 assertTrue('v8Parse' in dtf); |
| 11 assertTrue('resolved' in dtf); |
| 12 assertTrue(!!dtf.resolved && 'pattern' in dtf.resolved); |
| 13 |
| 14 var nf = new Intl.NumberFormat(['en']); |
| 15 assertTrue('v8Parse' in nf); |
| 16 assertTrue('resolved' in nf); |
| 17 assertTrue(!!nf.resolved && 'pattern' in nf.resolved); |
| 18 |
| 19 var col = new Intl.Collator(['en']); |
| 20 assertTrue('resolved' in col); |
| 21 |
| 22 var br = new Intl.v8BreakIterator(['en']); |
| 23 assertTrue('resolved' in br); |
OLD | NEW |