Home | History | Annotate | Download | only in intl
      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: --no-intl-extra
      6 
      7 // Turning off the flag removes the non-standard properties
      8 
      9 var dtf = new Intl.DateTimeFormat(['en']);
     10 assertFalse('v8Parse' in dtf);
     11 assertFalse('resolved' in dtf);
     12 assertFalse(!!dtf.resolved && 'pattern' in dtf.resolved);
     13 
     14 var nf = new Intl.NumberFormat(['en']);
     15 assertFalse('v8Parse' in nf);
     16 assertFalse('resolved' in nf);
     17 assertFalse(!!nf.resolved && 'pattern' in nf.resolved);
     18 
     19 var col = new Intl.Collator(['en']);
     20 assertFalse('resolved' in col);
     21 
     22 var br = new Intl.v8BreakIterator(['en']);
     23 assertFalse('resolved' in br);
     24