blob: 6735f84a2e020509d6e16687ff9498047dc5ab6a [file] [log] [blame]
Ben Murdochc5610432016-08-08 18:44:38 +01001// 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: --no-intl-extra
6
7// Turning off the flag removes the non-standard properties
8
9var dtf = new Intl.DateTimeFormat(['en']);
10assertFalse('v8Parse' in dtf);
11assertFalse('resolved' in dtf);
12assertFalse(!!dtf.resolved && 'pattern' in dtf.resolved);
13
14var nf = new Intl.NumberFormat(['en']);
15assertFalse('v8Parse' in nf);
16assertFalse('resolved' in nf);
17assertFalse(!!nf.resolved && 'pattern' in nf.resolved);
18
19var col = new Intl.Collator(['en']);
20assertFalse('resolved' in col);
21
22var br = new Intl.v8BreakIterator(['en']);
23assertFalse('resolved' in br);