tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

second-undefined.js (784B)


      1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
      2 // Copyright (C) 2021 Igalia, S.L. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-temporal.plaindatetime
      7 description: Second argument defaults to 0 if not given
      8 includes: [temporalHelpers.js]
      9 features: [Temporal]
     10 ---*/
     11 
     12 const args = [2000, 5, 2, 12, 34];
     13 
     14 TemporalHelpers.assertPlainDateTime(
     15  new Temporal.PlainDateTime(...args, undefined),
     16  2000, 5, "M05", 2, 12, 34, 0, 0, 0, 0,
     17  "second default argument (argument present)"
     18 );
     19 
     20 TemporalHelpers.assertPlainDateTime(
     21  new Temporal.PlainDateTime(...args),
     22  2000, 5, "M05", 2, 12, 34, 0, 0, 0, 0,
     23  "second default argument (argument missing)"
     24 );
     25 
     26 reportCompare(0, 0);