<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[194387] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/194387">194387</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2015-12-23 02:48:26 -0800 (Wed, 23 Dec 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>[INTL] Implement Intl.DateTimeFormat.prototype.resolvedOptions ()
https://bugs.webkit.org/show_bug.cgi?id=147603

Patch by Andy VanWagoner &lt;andy@instructure.com&gt; on 2015-12-23
Reviewed by Benjamin Poulain.

.:

* Source/cmake/OptionsWin.cmake: Disable INTL on Windows for now

Source/JavaScriptCore:

Implements InitializeDateTimeFormat and related abstract operations
using ICU. Lazy initialization is used for DateTimeFormat.prototype.
Refactor to align with Collator work.

* icu/unicode/udatpg.h: Added.
* icu/unicode/unumsys.h: Added.
* runtime/CommonIdentifiers.h:
* runtime/IntlDateTimeFormat.cpp:
(JSC::defaultTimeZone):
(JSC::canonicalizeTimeZoneName):
(JSC::localeData):
(JSC::toDateTimeOptions):
(JSC::IntlDateTimeFormat::setFormatsFromPattern):
(JSC::IntlDateTimeFormat::initializeDateTimeFormat):
(JSC::IntlDateTimeFormat::weekdayString):
(JSC::IntlDateTimeFormat::eraString):
(JSC::IntlDateTimeFormat::yearString):
(JSC::IntlDateTimeFormat::monthString):
(JSC::IntlDateTimeFormat::dayString):
(JSC::IntlDateTimeFormat::hourString):
(JSC::IntlDateTimeFormat::minuteString):
(JSC::IntlDateTimeFormat::secondString):
(JSC::IntlDateTimeFormat::timeZoneNameString):
(JSC::IntlDateTimeFormat::resolvedOptions):
(JSC::IntlDateTimeFormat::format):
(JSC::IntlDateTimeFormatFuncFormatDateTime): Deleted.
* runtime/IntlDateTimeFormat.h:
* runtime/IntlDateTimeFormatConstructor.cpp:
(JSC::constructIntlDateTimeFormat):
(JSC::callIntlDateTimeFormat):
* runtime/IntlDateTimeFormatPrototype.cpp:
(JSC::IntlDateTimeFormatFuncFormatDateTime):
(JSC::IntlDateTimeFormatPrototypeGetterFormat):
(JSC::IntlDateTimeFormatPrototypeFuncResolvedOptions):
* runtime/IntlObject.cpp:
(JSC::resolveLocale):
(JSC::getNumberingSystemsForLocale):
* runtime/IntlObject.h:

LayoutTests:

* js/intl-datetimeformat-expected.txt: Added resolvedOptions tests.
* js/script-tests/intl-datetimeformat.js: Added resolvedOptions tests.
(string_appeared_here):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkChangeLog">trunk/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsjsintldatetimeformatexpectedtxt">trunk/LayoutTests/js/intl-datetimeformat-expected.txt</a></li>
<li><a href="#trunkLayoutTestsjsscripttestsintldatetimeformatjs">trunk/LayoutTests/js/script-tests/intl-datetimeformat.js</a></li>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeCommonIdentifiersh">trunk/Source/JavaScriptCore/runtime/CommonIdentifiers.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeIntlDateTimeFormatcpp">trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeIntlDateTimeFormath">trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeIntlDateTimeFormatConstructorcpp">trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormatConstructor.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeIntlDateTimeFormatPrototypecpp">trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormatPrototype.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeIntlObjectcpp">trunk/Source/JavaScriptCore/runtime/IntlObject.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeIntlObjecth">trunk/Source/JavaScriptCore/runtime/IntlObject.h</a></li>
<li><a href="#trunkSourcecmakeOptionsWincmake">trunk/Source/cmake/OptionsWin.cmake</a></li>
<li><a href="#trunkToolsWebKitTestRunnerWebKitTestRunnerxcodeprojprojectpbxproj">trunk/Tools/WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreicuunicodeudatpgh">trunk/Source/JavaScriptCore/icu/unicode/udatpg.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreicuunicodeunumsysh">trunk/Source/JavaScriptCore/icu/unicode/unumsys.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/ChangeLog (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/ChangeLog        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/ChangeLog        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2015-12-23  Andy VanWagoner  &lt;andy@instructure.com&gt;
+
+        [INTL] Implement Intl.DateTimeFormat.prototype.resolvedOptions ()
+        https://bugs.webkit.org/show_bug.cgi?id=147603
+
+        Reviewed by Benjamin Poulain.
+
+        * Source/cmake/OptionsWin.cmake: Disable INTL on Windows for now
+
</ins><span class="cx"> 2015-12-16  Youenn Fablet  &lt;youenn.fablet@crf.canon.fr&gt;
</span><span class="cx"> 
</span><span class="cx">         [Fetch API] Add fetch API compile time flag
</span></span></pre></div>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/LayoutTests/ChangeLog        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2015-12-23  Andy VanWagoner  &lt;andy@instructure.com&gt;
+
+        [INTL] Implement Intl.DateTimeFormat.prototype.resolvedOptions ()
+        https://bugs.webkit.org/show_bug.cgi?id=147603
+
+        Reviewed by Benjamin Poulain.
+
+        * js/intl-datetimeformat-expected.txt: Added resolvedOptions tests.
+        * js/script-tests/intl-datetimeformat.js: Added resolvedOptions tests.
+        (string_appeared_here):
+
</ins><span class="cx"> 2015-12-23  Chris Aljoudi &lt;chris@chrismatic.io&gt; and Alex Christensen &lt;achristensen@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Content blockers should be able to promote http to https
</span></span></pre></div>
<a id="trunkLayoutTestsjsintldatetimeformatexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/js/intl-datetimeformat-expected.txt (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/intl-datetimeformat-expected.txt        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/LayoutTests/js/intl-datetimeformat-expected.txt        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -54,7 +54,7 @@
</span><span class="cx"> PASS Intl.DateTimeFormat.prototype.format !== Intl.DateTimeFormat().format is true
</span><span class="cx"> PASS new Intl.DateTimeFormat().format !== new Intl.DateTimeFormat().format is true
</span><span class="cx"> PASS Intl.DateTimeFormat.prototype.format({ valueOf() { throw Error('4b') } }) threw exception Error: 4b.
</span><del>-PASS Intl.DateTimeFormat.prototype.format(Infinity) threw exception RangeError: date value is not finite in DateTimeFormat.format().
</del><ins>+PASS Intl.DateTimeFormat.prototype.format(Infinity) threw exception RangeError: date value is not finite in DateTimeFormat format().
</ins><span class="cx"> PASS Intl.DateTimeFormat.prototype.format.call(null, 0) is Intl.DateTimeFormat().format(0)
</span><span class="cx"> PASS Intl.DateTimeFormat.prototype.format.call(Intl.DateTimeFormat('ar'), 0) is Intl.DateTimeFormat().format(0)
</span><span class="cx"> PASS Intl.DateTimeFormat.prototype.format.call(5, 0) is Intl.DateTimeFormat().format(0)
</span><span class="lines">@@ -63,8 +63,1697 @@
</span><span class="cx"> PASS new Intl.DateTimeFormat().format.call(5, 0) is Intl.DateTimeFormat().format(0)
</span><span class="cx"> PASS Intl.DateTimeFormat.prototype.resolvedOptions.length is 0
</span><span class="cx"> PASS Intl.DateTimeFormat.prototype.resolvedOptions() is an instance of Object
</span><ins>+PASS Intl.DateTimeFormat.prototype.resolvedOptions().locale is new Intl.DateTimeFormat().resolvedOptions().locale
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().timeZone is new Intl.DateTimeFormat().resolvedOptions().timeZone
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().calendar is new Intl.DateTimeFormat().resolvedOptions().calendar
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().numberingSystem is new Intl.DateTimeFormat().resolvedOptions().numberingSystem
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().weekday is new Intl.DateTimeFormat().resolvedOptions().weekday
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().era is new Intl.DateTimeFormat().resolvedOptions().era
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().year is new Intl.DateTimeFormat().resolvedOptions().year
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().month is new Intl.DateTimeFormat().resolvedOptions().month
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().day is new Intl.DateTimeFormat().resolvedOptions().day
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().hour is new Intl.DateTimeFormat().resolvedOptions().hour
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().hour12 is new Intl.DateTimeFormat().resolvedOptions().hour12
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().minute is new Intl.DateTimeFormat().resolvedOptions().minute
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().second is new Intl.DateTimeFormat().resolvedOptions().second
+PASS Intl.DateTimeFormat.prototype.resolvedOptions().timeZoneName is new Intl.DateTimeFormat().resolvedOptions().timeZoneName
</ins><span class="cx"> PASS Intl.DateTimeFormat.prototype.resolvedOptions() === Intl.DateTimeFormat.prototype.resolvedOptions() is false
</span><span class="cx"> PASS Intl.DateTimeFormat.prototype.resolvedOptions.call(5) threw exception TypeError: Intl.DateTimeFormat.prototype.resolvedOptions called on value that's not an object initialized as a DateTimeFormat.
</span><ins>+PASS Intl.DateTimeFormat('$') threw exception RangeError: invalid language tag: $.
+PASS Intl.DateTimeFormat('en', null) did not throw exception.
+PASS Intl.DateTimeFormat('en').resolvedOptions().weekday is undefined
+PASS Intl.DateTimeFormat('en').resolvedOptions().era is undefined
+PASS Intl.DateTimeFormat('en').resolvedOptions().month is 'numeric'
+PASS Intl.DateTimeFormat('en').resolvedOptions().day is 'numeric'
+PASS Intl.DateTimeFormat('en').resolvedOptions().year is 'numeric'
+PASS Intl.DateTimeFormat('en').resolvedOptions().hour is undefined
+PASS Intl.DateTimeFormat('en').resolvedOptions().hour12 is undefined
+PASS Intl.DateTimeFormat('en').resolvedOptions().minute is undefined
+PASS Intl.DateTimeFormat('en').resolvedOptions().second is undefined
+PASS Intl.DateTimeFormat('en').resolvedOptions().timeZoneName is undefined
+PASS Intl.DateTimeFormat('en', { localeMatcher: { toString() { throw 'nope' } } }) threw exception nope.
+PASS Intl.DateTimeFormat('en', { localeMatcher:'bad' }) threw exception RangeError: localeMatcher must be either &quot;lookup&quot; or &quot;best fit&quot;.
+PASS Intl.DateTimeFormat('en', { localeMatcher:'lookup' }) did not throw exception.
+PASS Intl.DateTimeFormat('en', { localeMatcher:'best fit' }) did not throw exception.
+PASS Intl.DateTimeFormat('en', { formatMatcher: { toString() { throw 'nope' } } }) threw exception nope.
+PASS Intl.DateTimeFormat('en', { formatMatcher:'bad' }) threw exception RangeError: formatMatcher must be either &quot;basic&quot; or &quot;best fit&quot;.
+PASS Intl.DateTimeFormat('en', { formatMatcher:'basic' }) did not throw exception.
+PASS Intl.DateTimeFormat('en', { formatMatcher:'best fit' }) did not throw exception.
+PASS Intl.DateTimeFormat('en', { timeZone: 'nowhere/bogus' }) threw exception RangeError: invalid time zone: nowhere/bogus.
+PASS Intl.DateTimeFormat('en', { timeZone: { toString() { throw 'nope' } } }) threw exception nope.
+PASS Intl.DateTimeFormat('en', { timeZone: 'america/denver' }).resolvedOptions().timeZone is 'America/Denver'
+PASS Intl.DateTimeFormat('en', { timeZone: 'AMERICA/LOS_ANGELES' }).resolvedOptions().timeZone is 'America/Los_Angeles'
+PASS Intl.DateTimeFormat('en', { timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone }).resolvedOptions().timeZone is Intl.DateTimeFormat().resolvedOptions().timeZone
+PASS Intl.DateTimeFormat('en', { timeZone: 'America/Atka' }).resolvedOptions().timeZone is 'America/Adak'
+PASS Intl.DateTimeFormat('en', { timeZone: 'America/Ensenada' }).resolvedOptions().timeZone is 'America/Tijuana'
+PASS Intl.DateTimeFormat('en', { timeZone: 'America/Porto_Acre' }).resolvedOptions().timeZone is 'America/Rio_Branco'
+PASS Intl.DateTimeFormat('en', { timeZone: 'America/Shiprock' }).resolvedOptions().timeZone is 'America/Denver'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Antarctica/South_Pole' }).resolvedOptions().timeZone is 'Pacific/Auckland'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Ashkhabad' }).resolvedOptions().timeZone is 'Asia/Ashgabat'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Chongqing' }).resolvedOptions().timeZone is 'Asia/Shanghai'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Chungking' }).resolvedOptions().timeZone is 'Asia/Shanghai'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Dacca' }).resolvedOptions().timeZone is 'Asia/Dhaka'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Harbin' }).resolvedOptions().timeZone is 'Asia/Shanghai'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Kashgar' }).resolvedOptions().timeZone is 'Asia/Urumqi'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Macao' }).resolvedOptions().timeZone is 'Asia/Macau'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Tel_Aviv' }).resolvedOptions().timeZone is 'Asia/Jerusalem'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Thimbu' }).resolvedOptions().timeZone is 'Asia/Thimphu'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Ujung_Pandang' }).resolvedOptions().timeZone is 'Asia/Makassar'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Asia/Ulan_Bator' }).resolvedOptions().timeZone is 'Asia/Ulaanbaatar'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/ACT' }).resolvedOptions().timeZone is 'Australia/Sydney'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/Canberra' }).resolvedOptions().timeZone is 'Australia/Sydney'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/LHI' }).resolvedOptions().timeZone is 'Australia/Lord_Howe'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/NSW' }).resolvedOptions().timeZone is 'Australia/Sydney'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/North' }).resolvedOptions().timeZone is 'Australia/Darwin'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/Queensland' }).resolvedOptions().timeZone is 'Australia/Brisbane'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/South' }).resolvedOptions().timeZone is 'Australia/Adelaide'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/Tasmania' }).resolvedOptions().timeZone is 'Australia/Hobart'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/Victoria' }).resolvedOptions().timeZone is 'Australia/Melbourne'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/West' }).resolvedOptions().timeZone is 'Australia/Perth'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Australia/Yancowinna' }).resolvedOptions().timeZone is 'Australia/Broken_Hill'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Brazil/Acre' }).resolvedOptions().timeZone is 'America/Rio_Branco'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Brazil/DeNoronha' }).resolvedOptions().timeZone is 'America/Noronha'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Brazil/East' }).resolvedOptions().timeZone is 'America/Sao_Paulo'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Brazil/West' }).resolvedOptions().timeZone is 'America/Manaus'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Canada/Atlantic' }).resolvedOptions().timeZone is 'America/Halifax'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Canada/Central' }).resolvedOptions().timeZone is 'America/Winnipeg'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Canada/East-Saskatchewan' }).resolvedOptions().timeZone is 'America/Regina'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Canada/Eastern' }).resolvedOptions().timeZone is 'America/Toronto'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Canada/Mountain' }).resolvedOptions().timeZone is 'America/Edmonton'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Canada/Newfoundland' }).resolvedOptions().timeZone is 'America/St_Johns'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Canada/Pacific' }).resolvedOptions().timeZone is 'America/Vancouver'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Canada/Saskatchewan' }).resolvedOptions().timeZone is 'America/Regina'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Canada/Yukon' }).resolvedOptions().timeZone is 'America/Whitehorse'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Chile/Continental' }).resolvedOptions().timeZone is 'America/Santiago'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Chile/EasterIsland' }).resolvedOptions().timeZone is 'Pacific/Easter'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Cuba' }).resolvedOptions().timeZone is 'America/Havana'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Egypt' }).resolvedOptions().timeZone is 'Africa/Cairo'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Eire' }).resolvedOptions().timeZone is 'Europe/Dublin'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Europe/Belfast' }).resolvedOptions().timeZone is 'Europe/London'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Europe/Tiraspol' }).resolvedOptions().timeZone is 'Europe/Chisinau'
+PASS Intl.DateTimeFormat('en', { timeZone: 'GB' }).resolvedOptions().timeZone is 'Europe/London'
+PASS Intl.DateTimeFormat('en', { timeZone: 'GB-Eire' }).resolvedOptions().timeZone is 'Europe/London'
+PASS Intl.DateTimeFormat('en', { timeZone: 'GMT+0' }).resolvedOptions().timeZone is 'UTC'
+PASS Intl.DateTimeFormat('en', { timeZone: 'GMT-0' }).resolvedOptions().timeZone is 'UTC'
+PASS Intl.DateTimeFormat('en', { timeZone: 'GMT0' }).resolvedOptions().timeZone is 'UTC'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Greenwich' }).resolvedOptions().timeZone is 'UTC'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Hongkong' }).resolvedOptions().timeZone is 'Asia/Hong_Kong'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Iceland' }).resolvedOptions().timeZone is 'Atlantic/Reykjavik'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Iran' }).resolvedOptions().timeZone is 'Asia/Tehran'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Israel' }).resolvedOptions().timeZone is 'Asia/Jerusalem'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Jamaica' }).resolvedOptions().timeZone is 'America/Jamaica'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Japan' }).resolvedOptions().timeZone is 'Asia/Tokyo'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Kwajalein' }).resolvedOptions().timeZone is 'Pacific/Kwajalein'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Libya' }).resolvedOptions().timeZone is 'Africa/Tripoli'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Mexico/BajaNorte' }).resolvedOptions().timeZone is 'America/Tijuana'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Mexico/BajaSur' }).resolvedOptions().timeZone is 'America/Mazatlan'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Mexico/General' }).resolvedOptions().timeZone is 'America/Mexico_City'
+PASS Intl.DateTimeFormat('en', { timeZone: 'NZ' }).resolvedOptions().timeZone is 'Pacific/Auckland'
+PASS Intl.DateTimeFormat('en', { timeZone: 'NZ-CHAT' }).resolvedOptions().timeZone is 'Pacific/Chatham'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Navajo' }).resolvedOptions().timeZone is 'America/Denver'
+PASS Intl.DateTimeFormat('en', { timeZone: 'PRC' }).resolvedOptions().timeZone is 'Asia/Shanghai'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Poland' }).resolvedOptions().timeZone is 'Europe/Warsaw'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Portugal' }).resolvedOptions().timeZone is 'Europe/Lisbon'
+PASS Intl.DateTimeFormat('en', { timeZone: 'ROC' }).resolvedOptions().timeZone is 'Asia/Taipei'
+PASS Intl.DateTimeFormat('en', { timeZone: 'ROK' }).resolvedOptions().timeZone is 'Asia/Seoul'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Singapore' }).resolvedOptions().timeZone is 'Asia/Singapore'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Turkey' }).resolvedOptions().timeZone is 'Europe/Istanbul'
+PASS Intl.DateTimeFormat('en', { timeZone: 'UCT' }).resolvedOptions().timeZone is 'UTC'
+PASS Intl.DateTimeFormat('en', { timeZone: 'US/Alaska' }).resolvedOptions().timeZone is 'America/Anchorage'
+PASS Intl.DateTimeFormat('en', { timeZone: 'US/Aleutian' }).resolvedOptions().timeZone is 'America/Adak'
+PASS Intl.DateTimeFormat('en', { timeZone: 'US/Arizona' }).resolvedOptions().timeZone is 'America/Phoenix'
+PASS Intl.DateTimeFormat('en', { timeZone: 'US/Central' }).resolvedOptions().timeZone is 'America/Chicago'
+PASS Intl.DateTimeFormat('en', { timeZone: 'US/Eastern' }).resolvedOptions().timeZone is 'America/New_York'
+PASS Intl.DateTimeFormat('en', { timeZone: 'US/Hawaii' }).resolvedOptions().timeZone is 'Pacific/Honolulu'
+PASS Intl.DateTimeFormat('en', { timeZone: 'US/Michigan' }).resolvedOptions().timeZone is 'America/Detroit'
+PASS Intl.DateTimeFormat('en', { timeZone: 'US/Mountain' }).resolvedOptions().timeZone is 'America/Denver'
+PASS Intl.DateTimeFormat('en', { timeZone: 'US/Pacific' }).resolvedOptions().timeZone is 'America/Los_Angeles'
+PASS Intl.DateTimeFormat('en', { timeZone: 'US/Samoa' }).resolvedOptions().timeZone is 'Pacific/Pago_Pago'
+PASS Intl.DateTimeFormat('en', { timeZone: 'UTC' }).resolvedOptions().timeZone is 'UTC'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Universal' }).resolvedOptions().timeZone is 'UTC'
+PASS Intl.DateTimeFormat('en', { timeZone: 'W-SU' }).resolvedOptions().timeZone is 'Europe/Moscow'
+PASS Intl.DateTimeFormat('en', { timeZone: 'Zulu' }).resolvedOptions().timeZone is 'UTC'
+PASS Intl.DateTimeFormat('ar-sa').resolvedOptions().locale is 'ar-SA'
+PASS Intl.DateTimeFormat('ar-sa').resolvedOptions().calendar is 'islamic-umalqura'
+PASS Intl.DateTimeFormat('ar-sa').resolvedOptions().numberingSystem is 'arab'
+PASS Intl.DateTimeFormat('en', { calendar:'dangi' }).resolvedOptions().calendar is 'gregorian'
+PASS Intl.DateTimeFormat('en-u-ca-bogus').resolvedOptions().locale is 'en'
+PASS Intl.DateTimeFormat('en-u-ca-bogus').resolvedOptions().calendar is 'gregorian'
+PASS Intl.DateTimeFormat('en-u-ca-buddhist').resolvedOptions().locale is 'en-u-ca-buddhist'
+PASS Intl.DateTimeFormat('en-u-ca-buddhist').resolvedOptions().calendar is 'buddhist'
+PASS Intl.DateTimeFormat('en-u-ca-chinese').resolvedOptions().calendar is 'chinese'
+PASS Intl.DateTimeFormat('en-u-ca-coptic').resolvedOptions().calendar is 'coptic'
+PASS Intl.DateTimeFormat('en-u-ca-dangi').resolvedOptions().calendar is 'dangi'
+PASS Intl.DateTimeFormat('en-u-ca-ethioaa').resolvedOptions().calendar is 'ethiopic-amete-alem'
+PASS Intl.DateTimeFormat('en-u-ca-ethiopic').resolvedOptions().calendar is 'ethiopic'
+PASS Intl.DateTimeFormat('ar-SA-u-ca-gregory').resolvedOptions().calendar is 'gregorian'
+PASS Intl.DateTimeFormat('en-u-ca-hebrew').resolvedOptions().calendar is 'hebrew'
+PASS Intl.DateTimeFormat('en-u-ca-indian').resolvedOptions().calendar is 'indian'
+PASS Intl.DateTimeFormat('en-u-ca-islamic').resolvedOptions().calendar is 'islamic'
+PASS Intl.DateTimeFormat('en-u-ca-islamicc').resolvedOptions().calendar is 'islamic-civil'
+PASS Intl.DateTimeFormat('en-u-ca-ISO8601').resolvedOptions().calendar is 'iso8601'
+PASS Intl.DateTimeFormat('en-u-ca-japanese').resolvedOptions().calendar is 'japanese'
+PASS Intl.DateTimeFormat('en-u-ca-persian').resolvedOptions().calendar is 'persian'
+PASS Intl.DateTimeFormat('en-u-ca-roc').resolvedOptions().calendar is 'roc'
+PASS Intl.DateTimeFormat('en', { numberingSystem:'gujr' }).resolvedOptions().numberingSystem is 'latn'
+PASS Intl.DateTimeFormat('en-u-nu-bogus').resolvedOptions().locale is 'en'
+PASS Intl.DateTimeFormat('en-u-nu-bogus').resolvedOptions().numberingSystem is 'latn'
+PASS Intl.DateTimeFormat('en-u-nu-latn').resolvedOptions().numberingSystem is 'latn'
+PASS Intl.DateTimeFormat('en-u-nu-arab').resolvedOptions().locale is 'en-u-nu-arab'
+PASS Intl.DateTimeFormat('en-u-nu-arab').resolvedOptions().numberingSystem is 'arab'
+PASS Intl.DateTimeFormat('en-u-nu-arabext').resolvedOptions().numberingSystem is 'arabext'
+PASS Intl.DateTimeFormat('en-u-nu-armn').resolvedOptions().numberingSystem is 'armn'
+PASS Intl.DateTimeFormat('en-u-nu-armnlow').resolvedOptions().numberingSystem is 'armnlow'
+PASS Intl.DateTimeFormat('en-u-nu-bali').resolvedOptions().numberingSystem is 'bali'
+PASS Intl.DateTimeFormat('en-u-nu-beng').resolvedOptions().numberingSystem is 'beng'
+PASS Intl.DateTimeFormat('en-u-nu-cham').resolvedOptions().numberingSystem is 'cham'
+PASS Intl.DateTimeFormat('en-u-nu-deva').resolvedOptions().numberingSystem is 'deva'
+PASS Intl.DateTimeFormat('en-u-nu-ethi').resolvedOptions().numberingSystem is 'ethi'
+PASS Intl.DateTimeFormat('en-u-nu-fullwide').resolvedOptions().numberingSystem is 'fullwide'
+PASS Intl.DateTimeFormat('en-u-nu-geor').resolvedOptions().numberingSystem is 'geor'
+PASS Intl.DateTimeFormat('en-u-nu-grek').resolvedOptions().numberingSystem is 'grek'
+PASS Intl.DateTimeFormat('en-u-nu-greklow').resolvedOptions().numberingSystem is 'greklow'
+PASS Intl.DateTimeFormat('en-u-nu-gujr').resolvedOptions().numberingSystem is 'gujr'
+PASS Intl.DateTimeFormat('en-u-nu-guru').resolvedOptions().numberingSystem is 'guru'
+PASS Intl.DateTimeFormat('en-u-nu-hanidays').resolvedOptions().numberingSystem is 'hanidays'
+PASS Intl.DateTimeFormat('en-u-nu-hanidec').resolvedOptions().numberingSystem is 'hanidec'
+PASS Intl.DateTimeFormat('en-u-nu-hans').resolvedOptions().numberingSystem is 'hans'
+PASS Intl.DateTimeFormat('en-u-nu-hansfin').resolvedOptions().numberingSystem is 'hansfin'
+PASS Intl.DateTimeFormat('en-u-nu-hant').resolvedOptions().numberingSystem is 'hant'
+PASS Intl.DateTimeFormat('en-u-nu-hantfin').resolvedOptions().numberingSystem is 'hantfin'
+PASS Intl.DateTimeFormat('en-u-nu-hebr').resolvedOptions().numberingSystem is 'hebr'
+PASS Intl.DateTimeFormat('en-u-nu-java').resolvedOptions().numberingSystem is 'java'
+PASS Intl.DateTimeFormat('en-u-nu-jpan').resolvedOptions().numberingSystem is 'jpan'
+PASS Intl.DateTimeFormat('en-u-nu-jpanfin').resolvedOptions().numberingSystem is 'jpanfin'
+PASS Intl.DateTimeFormat('en-u-nu-kali').resolvedOptions().numberingSystem is 'kali'
+PASS Intl.DateTimeFormat('en-u-nu-khmr').resolvedOptions().numberingSystem is 'khmr'
+PASS Intl.DateTimeFormat('en-u-nu-knda').resolvedOptions().numberingSystem is 'knda'
+PASS Intl.DateTimeFormat('en-u-nu-lana').resolvedOptions().numberingSystem is 'lana'
+PASS Intl.DateTimeFormat('en-u-nu-lanatham').resolvedOptions().numberingSystem is 'lanatham'
+PASS Intl.DateTimeFormat('en-u-nu-laoo').resolvedOptions().numberingSystem is 'laoo'
+PASS Intl.DateTimeFormat('en-u-nu-latn').resolvedOptions().numberingSystem is 'latn'
+PASS Intl.DateTimeFormat('en-u-nu-lepc').resolvedOptions().numberingSystem is 'lepc'
+PASS Intl.DateTimeFormat('en-u-nu-limb').resolvedOptions().numberingSystem is 'limb'
+PASS Intl.DateTimeFormat('en-u-nu-mlym').resolvedOptions().numberingSystem is 'mlym'
+PASS Intl.DateTimeFormat('en-u-nu-mong').resolvedOptions().numberingSystem is 'mong'
+PASS Intl.DateTimeFormat('en-u-nu-mtei').resolvedOptions().numberingSystem is 'mtei'
+PASS Intl.DateTimeFormat('en-u-nu-mymr').resolvedOptions().numberingSystem is 'mymr'
+PASS Intl.DateTimeFormat('en-u-nu-mymrshan').resolvedOptions().numberingSystem is 'mymrshan'
+PASS Intl.DateTimeFormat('en-u-nu-nkoo').resolvedOptions().numberingSystem is 'nkoo'
+PASS Intl.DateTimeFormat('en-u-nu-olck').resolvedOptions().numberingSystem is 'olck'
+PASS Intl.DateTimeFormat('en-u-nu-orya').resolvedOptions().numberingSystem is 'orya'
+PASS Intl.DateTimeFormat('en-u-nu-roman').resolvedOptions().numberingSystem is 'roman'
+PASS Intl.DateTimeFormat('en-u-nu-romanlow').resolvedOptions().numberingSystem is 'romanlow'
+PASS Intl.DateTimeFormat('en-u-nu-saur').resolvedOptions().numberingSystem is 'saur'
+PASS Intl.DateTimeFormat('en-u-nu-sund').resolvedOptions().numberingSystem is 'sund'
+PASS Intl.DateTimeFormat('en-u-nu-talu').resolvedOptions().numberingSystem is 'talu'
+PASS Intl.DateTimeFormat('en-u-nu-taml').resolvedOptions().numberingSystem is 'taml'
+PASS Intl.DateTimeFormat('en-u-nu-tamldec').resolvedOptions().numberingSystem is 'tamldec'
+PASS Intl.DateTimeFormat('en-u-nu-telu').resolvedOptions().numberingSystem is 'telu'
+PASS Intl.DateTimeFormat('en-u-nu-thai').resolvedOptions().numberingSystem is 'thai'
+PASS Intl.DateTimeFormat('en-u-nu-tibt').resolvedOptions().numberingSystem is 'tibt'
+PASS Intl.DateTimeFormat('en-u-nu-vaii').resolvedOptions().numberingSystem is 'vaii'
+PASS Intl.DateTimeFormat('en', { weekday: { toString() { throw 'weekday' } } }) threw exception weekday.
+PASS Intl.DateTimeFormat('en', { weekday:'invalid' }) threw exception RangeError: weekday must be &quot;narrow&quot;, &quot;short&quot;, or &quot;long&quot;.
+PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().weekday is undefined
+PASS Intl.DateTimeFormat('en', { weekday:'narrow', month:'numeric', day:'numeric' }).resolvedOptions().weekday is 'narrow'
+PASS Intl.DateTimeFormat('en', { weekday:'short', month:'numeric', day:'numeric' }).resolvedOptions().weekday is 'short'
+PASS Intl.DateTimeFormat('en', { weekday:'long', month:'numeric', day:'numeric' }).resolvedOptions().weekday is 'long'
+PASS Intl.DateTimeFormat('en', { era: { toString() { throw 'era' } } }) threw exception era.
+PASS Intl.DateTimeFormat('en', { era:'never' }) threw exception RangeError: era must be &quot;narrow&quot;, &quot;short&quot;, or &quot;long&quot;.
+PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().day is undefined
+PASS Intl.DateTimeFormat('en', { era:'narrow', year:'numeric' }).resolvedOptions().era is 'narrow'
+PASS Intl.DateTimeFormat('en', { era:'short', year:'numeric' }).resolvedOptions().era is 'short'
+PASS Intl.DateTimeFormat('en', { era:'long', year:'numeric' }).resolvedOptions().era is 'long'
+PASS Intl.DateTimeFormat('en', { year: { toString() { throw 'year' } } }) threw exception year.
+PASS Intl.DateTimeFormat('en', { year:'nope' }) threw exception RangeError: year must be &quot;2-digit&quot; or &quot;numeric&quot;.
+PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().year is undefined
+PASS Intl.DateTimeFormat('en', { era:'narrow', year:'2-digit' }).resolvedOptions().year is '2-digit'
+PASS Intl.DateTimeFormat('en', { era:'narrow', year:'numeric' }).resolvedOptions().year is 'numeric'
+PASS Intl.DateTimeFormat('en', { month: { toString() { throw 'month' } } }) threw exception month.
+PASS Intl.DateTimeFormat('en', { month:2 }) threw exception RangeError: month must be &quot;2-digit&quot;, &quot;numeric&quot;, &quot;narrow&quot;, &quot;short&quot;, or &quot;long&quot;.
+PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().month is undefined
+PASS Intl.DateTimeFormat('en', { month:'2-digit', year:'numeric' }).resolvedOptions().month is '2-digit'
+PASS Intl.DateTimeFormat('en', { month:'numeric', year:'numeric' }).resolvedOptions().month is 'numeric'
+PASS Intl.DateTimeFormat('en', { month:'narrow', year:'numeric' }).resolvedOptions().month is 'narrow'
+PASS Intl.DateTimeFormat('en', { month:'short', year:'numeric' }).resolvedOptions().month is 'short'
+PASS Intl.DateTimeFormat('en', { month:'long', year:'numeric' }).resolvedOptions().month is 'long'
+PASS Intl.DateTimeFormat('en', { day: { toString() { throw 'day' } } }) threw exception day.
+PASS Intl.DateTimeFormat('en', { day:'' }) threw exception RangeError: day must be &quot;2-digit&quot; or &quot;numeric&quot;.
+PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().day is undefined
+PASS Intl.DateTimeFormat('en', { month:'long', day:'2-digit' }).resolvedOptions().day is '2-digit'
+PASS Intl.DateTimeFormat('en', { month:'long', day:'numeric' }).resolvedOptions().day is 'numeric'
+PASS Intl.DateTimeFormat('en', { hour: { toString() { throw 'hour' } } }) threw exception hour.
+PASS Intl.DateTimeFormat('en', { hour:[] }) threw exception RangeError: hour must be &quot;2-digit&quot; or &quot;numeric&quot;.
+PASS Intl.DateTimeFormat('en').resolvedOptions().hour is undefined
+PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'2-digit' }).resolvedOptions().hour is 'numeric'
+PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().hour is 'numeric'
+PASS Intl.DateTimeFormat('en').resolvedOptions().hour12 is undefined
+PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().hour12 is true
+PASS Intl.DateTimeFormat('pt-BR', { minute:'2-digit', hour:'numeric' }).resolvedOptions().hour12 is false
+PASS Intl.DateTimeFormat('en', { minute: { toString() { throw 'minute' } } }) threw exception minute.
+PASS Intl.DateTimeFormat('en', { minute:null }) threw exception RangeError: minute must be &quot;2-digit&quot; or &quot;numeric&quot;.
+PASS Intl.DateTimeFormat('en').resolvedOptions().minute is undefined
+PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().minute is '2-digit'
+PASS Intl.DateTimeFormat('en', { minute:'numeric', hour:'numeric' }).resolvedOptions().minute is '2-digit'
+PASS Intl.DateTimeFormat('en', { second: { toString() { throw 'second' } } }) threw exception second.
+PASS Intl.DateTimeFormat('en', { second:'badvalue' }) threw exception RangeError: second must be &quot;2-digit&quot; or &quot;numeric&quot;.
+PASS Intl.DateTimeFormat('en').resolvedOptions().second is undefined
+PASS Intl.DateTimeFormat('en', { minute:'numeric', hour:'numeric', second:'2-digit' }).resolvedOptions().second is '2-digit'
+PASS Intl.DateTimeFormat('en', { minute:'numeric', hour:'numeric', second:'numeric' }).resolvedOptions().second is '2-digit'
+PASS Intl.DateTimeFormat('en', { timeZoneName: { toString() { throw 'timeZoneName' } } }) threw exception timeZoneName.
+PASS Intl.DateTimeFormat('en', { timeZoneName:'name' }) threw exception RangeError: timeZoneName must be &quot;short&quot; or &quot;long&quot;.
+PASS Intl.DateTimeFormat('en').resolvedOptions().timeZoneName is undefined
+PASS Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric', timeZoneName:'short' }).resolvedOptions().timeZoneName is 'short'
+PASS Intl.DateTimeFormat('pt-BR', { minute:'2-digit', hour:'numeric', timeZoneName:'long' }).resolvedOptions().timeZoneName is 'long'
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar-SA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar-SA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar-SA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar-SA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar-SA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar-SA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ar-SA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;be&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;be&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;be&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;be&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;be&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;be&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;be&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ca&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ca&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ca&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ca&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ca&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ca&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ca&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;cs&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;cs&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;cs&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;cs&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;cs&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;cs&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;cs&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;da&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;da&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;da&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;da&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;da&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;da&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;da&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de-CH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de-CH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de-CH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de-CH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de-CH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de-CH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;de-CH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-AU&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-AU&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-AU&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-AU&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-AU&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-AU&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-AU&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-GB&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-GB&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-GB&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-GB&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-GB&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-GB&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-GB&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-PH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-PH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-PH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-PH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-PH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-PH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-PH&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-US&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-US&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-US&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-US&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-US&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-US&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;en-US&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;el&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;el&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;el&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;el&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;el&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;el&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;el&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-MX&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-MX&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-MX&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-MX&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-MX&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-MX&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-MX&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-PR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-PR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-PR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-PR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-PR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-PR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;es-PR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr-CA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr-CA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr-CA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr-CA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr-CA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr-CA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;fr-CA&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ga&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ga&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ga&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ga&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ga&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ga&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ga&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;hi-IN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;hi-IN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;hi-IN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;hi-IN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;hi-IN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;hi-IN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;hi-IN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;is&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;is&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;is&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;is&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;is&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;is&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;is&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;it&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;it&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;it&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;it&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;it&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;it&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;it&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;iw&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;iw&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;iw&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;iw&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;iw&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;iw&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;iw&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ja&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ja&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ja&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ja&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ja&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ja&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ja&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ko-KR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ko-KR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ko-KR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ko-KR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ko-KR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ko-KR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ko-KR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;lv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ms&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ms&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ms&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ms&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ms&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ms&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ms&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;mt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nb&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nb&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nb&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nb&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nb&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nb&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nb&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;nl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;no&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;no&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;no&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;no&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;no&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;no&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;no&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt-BR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt-BR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt-BR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt-BR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt-BR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt-BR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;pt-BR&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ro&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ro&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ro&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ro&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ro&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ro&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ro&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ru&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ru&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ru&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ru&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ru&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ru&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;ru&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sl&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;sv&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;th&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;th&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;th&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;th&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;th&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;th&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;th&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;tr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;tr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;tr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;tr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;tr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;tr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;tr&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;uk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;uk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;uk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;uk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;uk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;uk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;uk&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;vi&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;vi&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;vi&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;vi&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;vi&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;vi&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;vi&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-CN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-CN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-CN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-CN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-CN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-CN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-CN&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-Hant-HK&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-Hant-HK&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-Hant-HK&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-Hant-HK&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-Hant-HK&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-Hant-HK&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-Hant-HK&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-TW&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-TW&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-TW&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-TW&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-TW&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-TW&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
+PASS 
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;zh-TW&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null) is true
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsjsscripttestsintldatetimeformatjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/js/script-tests/intl-datetimeformat.js (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/script-tests/intl-datetimeformat.js        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/LayoutTests/js/script-tests/intl-datetimeformat.js        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -119,7 +119,7 @@
</span><span class="cx"> // 12.3.4 FormatDateTime abstract operation
</span><span class="cx"> 
</span><span class="cx"> // 1. If x is not a finite Number, then throw a RangeError exception.
</span><del>-shouldThrow(&quot;Intl.DateTimeFormat.prototype.format(Infinity)&quot;, &quot;'RangeError: date value is not finite in DateTimeFormat.format()'&quot;);
</del><ins>+shouldThrow(&quot;Intl.DateTimeFormat.prototype.format(Infinity)&quot;, &quot;'RangeError: date value is not finite in DateTimeFormat format()'&quot;);
</ins><span class="cx"> 
</span><span class="cx"> // Format is bound, so calling with alternate &quot;this&quot; has no effect.
</span><span class="cx"> shouldBe(&quot;Intl.DateTimeFormat.prototype.format.call(null, 0)&quot;, &quot;Intl.DateTimeFormat().format(0)&quot;);
</span><span class="lines">@@ -136,9 +136,309 @@
</span><span class="cx"> // Returns a new object whose properties and attributes are set as if constructed by an object literal.
</span><span class="cx"> shouldBeType(&quot;Intl.DateTimeFormat.prototype.resolvedOptions()&quot;, &quot;Object&quot;);
</span><span class="cx"> 
</span><ins>+// The Intl.DateTimeFormat prototype object is itself an %DateTimeFormat% instance, whose internal slots are set as if it had been constructed by the expression Construct(%DateTimeFormat%).
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().locale&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().locale&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().timeZone&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().timeZone&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().calendar&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().calendar&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().numberingSystem&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().numberingSystem&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().weekday&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().weekday&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().era&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().era&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().year&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().year&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().month&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().month&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().day&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().day&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().hour&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().hour&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().hour12&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().hour12&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().minute&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().minute&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().second&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().second&quot;);
+shouldBe(&quot;Intl.DateTimeFormat.prototype.resolvedOptions().timeZoneName&quot;, &quot;new Intl.DateTimeFormat().resolvedOptions().timeZoneName&quot;);
+
</ins><span class="cx"> // Returns a new object each time.
</span><span class="cx"> shouldBeFalse(&quot;Intl.DateTimeFormat.prototype.resolvedOptions() === Intl.DateTimeFormat.prototype.resolvedOptions()&quot;);
</span><span class="cx"> 
</span><span class="cx"> // Throws on non-DateTimeFormat this.
</span><span class="cx"> shouldThrow(&quot;Intl.DateTimeFormat.prototype.resolvedOptions.call(5)&quot;, &quot;'TypeError: Intl.DateTimeFormat.prototype.resolvedOptions called on value that\\'s not an object initialized as a DateTimeFormat'&quot;);
</span><span class="cx"> 
</span><ins>+shouldThrow(&quot;Intl.DateTimeFormat('$')&quot;, &quot;'RangeError: invalid language tag: $'&quot;);
+shouldNotThrow(&quot;Intl.DateTimeFormat('en', null)&quot;);
+
+// Defaults to month, day, year.
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().weekday&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().era&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().month&quot;, &quot;'numeric'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().day&quot;, &quot;'numeric'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().year&quot;, &quot;'numeric'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().hour&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().hour12&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().minute&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().second&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().timeZoneName&quot;, &quot;undefined&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { localeMatcher: { toString() { throw 'nope' } } })&quot;, &quot;'nope'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { localeMatcher:'bad' })&quot;, '\'RangeError: localeMatcher must be either &quot;lookup&quot; or &quot;best fit&quot;\'');
+shouldNotThrow(&quot;Intl.DateTimeFormat('en', { localeMatcher:'lookup' })&quot;);
+shouldNotThrow(&quot;Intl.DateTimeFormat('en', { localeMatcher:'best fit' })&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { formatMatcher: { toString() { throw 'nope' } } })&quot;, &quot;'nope'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { formatMatcher:'bad' })&quot;, '\'RangeError: formatMatcher must be either &quot;basic&quot; or &quot;best fit&quot;\'');
+shouldNotThrow(&quot;Intl.DateTimeFormat('en', { formatMatcher:'basic' })&quot;);
+shouldNotThrow(&quot;Intl.DateTimeFormat('en', { formatMatcher:'best fit' })&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { timeZone: 'nowhere/bogus' })&quot;, &quot;'RangeError: invalid time zone: nowhere/bogus'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { timeZone: { toString() { throw 'nope' } } })&quot;, &quot;'nope'&quot;);
+
+// Time zone is case insensitive.
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'america/denver' }).resolvedOptions().timeZone&quot;, &quot;'America/Denver'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'AMERICA/LOS_ANGELES' }).resolvedOptions().timeZone&quot;, &quot;'America/Los_Angeles'&quot;);
+
+// Default time zone is a valid canonical time zone.
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone }).resolvedOptions().timeZone&quot;, &quot;Intl.DateTimeFormat().resolvedOptions().timeZone&quot;);
+
+// Time zone is canonicalized for obsolete links in IANA tz backward file.
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'America/Atka' }).resolvedOptions().timeZone&quot;, &quot;'America/Adak'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'America/Ensenada' }).resolvedOptions().timeZone&quot;, &quot;'America/Tijuana'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'America/Porto_Acre' }).resolvedOptions().timeZone&quot;, &quot;'America/Rio_Branco'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'America/Shiprock' }).resolvedOptions().timeZone&quot;, &quot;'America/Denver'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Antarctica/South_Pole' }).resolvedOptions().timeZone&quot;, &quot;'Pacific/Auckland'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Ashkhabad' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Ashgabat'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Chongqing' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Shanghai'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Chungking' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Shanghai'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Dacca' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Dhaka'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Harbin' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Shanghai'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Kashgar' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Urumqi'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Macao' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Macau'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Tel_Aviv' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Jerusalem'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Thimbu' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Thimphu'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Ujung_Pandang' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Makassar'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Asia/Ulan_Bator' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Ulaanbaatar'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/ACT' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Sydney'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/Canberra' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Sydney'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/LHI' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Lord_Howe'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/NSW' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Sydney'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/North' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Darwin'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/Queensland' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Brisbane'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/South' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Adelaide'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/Tasmania' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Hobart'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/Victoria' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Melbourne'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/West' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Perth'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Australia/Yancowinna' }).resolvedOptions().timeZone&quot;, &quot;'Australia/Broken_Hill'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Brazil/Acre' }).resolvedOptions().timeZone&quot;, &quot;'America/Rio_Branco'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Brazil/DeNoronha' }).resolvedOptions().timeZone&quot;, &quot;'America/Noronha'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Brazil/East' }).resolvedOptions().timeZone&quot;, &quot;'America/Sao_Paulo'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Brazil/West' }).resolvedOptions().timeZone&quot;, &quot;'America/Manaus'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Canada/Atlantic' }).resolvedOptions().timeZone&quot;, &quot;'America/Halifax'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Canada/Central' }).resolvedOptions().timeZone&quot;, &quot;'America/Winnipeg'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Canada/East-Saskatchewan' }).resolvedOptions().timeZone&quot;, &quot;'America/Regina'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Canada/Eastern' }).resolvedOptions().timeZone&quot;, &quot;'America/Toronto'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Canada/Mountain' }).resolvedOptions().timeZone&quot;, &quot;'America/Edmonton'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Canada/Newfoundland' }).resolvedOptions().timeZone&quot;, &quot;'America/St_Johns'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Canada/Pacific' }).resolvedOptions().timeZone&quot;, &quot;'America/Vancouver'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Canada/Saskatchewan' }).resolvedOptions().timeZone&quot;, &quot;'America/Regina'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Canada/Yukon' }).resolvedOptions().timeZone&quot;, &quot;'America/Whitehorse'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Chile/Continental' }).resolvedOptions().timeZone&quot;, &quot;'America/Santiago'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Chile/EasterIsland' }).resolvedOptions().timeZone&quot;, &quot;'Pacific/Easter'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Cuba' }).resolvedOptions().timeZone&quot;, &quot;'America/Havana'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Egypt' }).resolvedOptions().timeZone&quot;, &quot;'Africa/Cairo'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Eire' }).resolvedOptions().timeZone&quot;, &quot;'Europe/Dublin'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Europe/Belfast' }).resolvedOptions().timeZone&quot;, &quot;'Europe/London'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Europe/Tiraspol' }).resolvedOptions().timeZone&quot;, &quot;'Europe/Chisinau'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'GB' }).resolvedOptions().timeZone&quot;, &quot;'Europe/London'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'GB-Eire' }).resolvedOptions().timeZone&quot;, &quot;'Europe/London'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'GMT+0' }).resolvedOptions().timeZone&quot;, &quot;'UTC'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'GMT-0' }).resolvedOptions().timeZone&quot;, &quot;'UTC'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'GMT0' }).resolvedOptions().timeZone&quot;, &quot;'UTC'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Greenwich' }).resolvedOptions().timeZone&quot;, &quot;'UTC'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Hongkong' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Hong_Kong'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Iceland' }).resolvedOptions().timeZone&quot;, &quot;'Atlantic/Reykjavik'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Iran' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Tehran'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Israel' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Jerusalem'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Jamaica' }).resolvedOptions().timeZone&quot;, &quot;'America/Jamaica'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Japan' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Tokyo'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Kwajalein' }).resolvedOptions().timeZone&quot;, &quot;'Pacific/Kwajalein'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Libya' }).resolvedOptions().timeZone&quot;, &quot;'Africa/Tripoli'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Mexico/BajaNorte' }).resolvedOptions().timeZone&quot;, &quot;'America/Tijuana'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Mexico/BajaSur' }).resolvedOptions().timeZone&quot;, &quot;'America/Mazatlan'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Mexico/General' }).resolvedOptions().timeZone&quot;, &quot;'America/Mexico_City'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'NZ' }).resolvedOptions().timeZone&quot;, &quot;'Pacific/Auckland'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'NZ-CHAT' }).resolvedOptions().timeZone&quot;, &quot;'Pacific/Chatham'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Navajo' }).resolvedOptions().timeZone&quot;, &quot;'America/Denver'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'PRC' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Shanghai'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Poland' }).resolvedOptions().timeZone&quot;, &quot;'Europe/Warsaw'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Portugal' }).resolvedOptions().timeZone&quot;, &quot;'Europe/Lisbon'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'ROC' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Taipei'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'ROK' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Seoul'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Singapore' }).resolvedOptions().timeZone&quot;, &quot;'Asia/Singapore'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Turkey' }).resolvedOptions().timeZone&quot;, &quot;'Europe/Istanbul'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'UCT' }).resolvedOptions().timeZone&quot;, &quot;'UTC'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'US/Alaska' }).resolvedOptions().timeZone&quot;, &quot;'America/Anchorage'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'US/Aleutian' }).resolvedOptions().timeZone&quot;, &quot;'America/Adak'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'US/Arizona' }).resolvedOptions().timeZone&quot;, &quot;'America/Phoenix'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'US/Central' }).resolvedOptions().timeZone&quot;, &quot;'America/Chicago'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'US/Eastern' }).resolvedOptions().timeZone&quot;, &quot;'America/New_York'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'US/Hawaii' }).resolvedOptions().timeZone&quot;, &quot;'Pacific/Honolulu'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'US/Michigan' }).resolvedOptions().timeZone&quot;, &quot;'America/Detroit'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'US/Mountain' }).resolvedOptions().timeZone&quot;, &quot;'America/Denver'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'US/Pacific' }).resolvedOptions().timeZone&quot;, &quot;'America/Los_Angeles'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'US/Samoa' }).resolvedOptions().timeZone&quot;, &quot;'Pacific/Pago_Pago'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'UTC' }).resolvedOptions().timeZone&quot;, &quot;'UTC'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Universal' }).resolvedOptions().timeZone&quot;, &quot;'UTC'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'W-SU' }).resolvedOptions().timeZone&quot;, &quot;'Europe/Moscow'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { timeZone: 'Zulu' }).resolvedOptions().timeZone&quot;, &quot;'UTC'&quot;);
+
+// Gets default calendar and numberingSystem from locale.
+shouldBe(&quot;Intl.DateTimeFormat('ar-sa').resolvedOptions().locale&quot;, &quot;'ar-SA'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('ar-sa').resolvedOptions().calendar&quot;, &quot;'islamic-umalqura'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('ar-sa').resolvedOptions().numberingSystem&quot;, &quot;'arab'&quot;);
+
+shouldBe(&quot;Intl.DateTimeFormat('en', { calendar:'dangi' }).resolvedOptions().calendar&quot;, &quot;'gregorian'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-bogus').resolvedOptions().locale&quot;, &quot;'en'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-bogus').resolvedOptions().calendar&quot;, &quot;'gregorian'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-buddhist').resolvedOptions().locale&quot;, &quot;'en-u-ca-buddhist'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-buddhist').resolvedOptions().calendar&quot;, &quot;'buddhist'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-chinese').resolvedOptions().calendar&quot;, &quot;'chinese'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-coptic').resolvedOptions().calendar&quot;, &quot;'coptic'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-dangi').resolvedOptions().calendar&quot;, &quot;'dangi'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-ethioaa').resolvedOptions().calendar&quot;, &quot;'ethiopic-amete-alem'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-ethiopic').resolvedOptions().calendar&quot;, &quot;'ethiopic'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('ar-SA-u-ca-gregory').resolvedOptions().calendar&quot;, &quot;'gregorian'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-hebrew').resolvedOptions().calendar&quot;, &quot;'hebrew'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-indian').resolvedOptions().calendar&quot;, &quot;'indian'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-islamic').resolvedOptions().calendar&quot;, &quot;'islamic'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-islamicc').resolvedOptions().calendar&quot;, &quot;'islamic-civil'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-ISO8601').resolvedOptions().calendar&quot;, &quot;'iso8601'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-japanese').resolvedOptions().calendar&quot;, &quot;'japanese'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-persian').resolvedOptions().calendar&quot;, &quot;'persian'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-roc').resolvedOptions().calendar&quot;, &quot;'roc'&quot;);
+// FIXME: https://github.com/tc39/ecma402/issues/59
+// shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-ethiopic-amete-alem').resolvedOptions().calendar&quot;, &quot;'ethioaa'&quot;);
+// shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-islamic-umalqura').resolvedOptions().calendar&quot;, &quot;'islamic-umalqura'&quot;);
+// shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-islamic-tbla').resolvedOptions().calendar&quot;, &quot;'islamic-tbla'&quot;);
+// shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-islamic-civil').resolvedOptions().calendar&quot;, &quot;'islamic-civil'&quot;);
+// shouldBe(&quot;Intl.DateTimeFormat('en-u-ca-islamic-rgsa').resolvedOptions().calendar&quot;, &quot;'islamic-rgsa'&quot;);
+
+shouldBe(&quot;Intl.DateTimeFormat('en', { numberingSystem:'gujr' }).resolvedOptions().numberingSystem&quot;, &quot;'latn'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-nu-bogus').resolvedOptions().locale&quot;, &quot;'en'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-nu-bogus').resolvedOptions().numberingSystem&quot;, &quot;'latn'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-nu-latn').resolvedOptions().numberingSystem&quot;, &quot;'latn'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en-u-nu-arab').resolvedOptions().locale&quot;, &quot;'en-u-nu-arab'&quot;);
+
+let numberingSystems = [
+  &quot;arab&quot;, &quot;arabext&quot;, &quot;armn&quot;, &quot;armnlow&quot;, &quot;bali&quot;, &quot;beng&quot;, &quot;cham&quot;, &quot;deva&quot;, &quot;ethi&quot;,
+  &quot;fullwide&quot;, &quot;geor&quot;, &quot;grek&quot;, &quot;greklow&quot;, &quot;gujr&quot;, &quot;guru&quot;, &quot;hanidays&quot;, &quot;hanidec&quot;,
+  &quot;hans&quot;, &quot;hansfin&quot;, &quot;hant&quot;, &quot;hantfin&quot;, &quot;hebr&quot;, &quot;java&quot;, &quot;jpan&quot;, &quot;jpanfin&quot;,
+  &quot;kali&quot;, &quot;khmr&quot;, &quot;knda&quot;, &quot;lana&quot;, &quot;lanatham&quot;, &quot;laoo&quot;, &quot;latn&quot;, &quot;lepc&quot;, &quot;limb&quot;,
+  &quot;mlym&quot;, &quot;mong&quot;, &quot;mtei&quot;, &quot;mymr&quot;, &quot;mymrshan&quot;, &quot;nkoo&quot;, &quot;olck&quot;, &quot;orya&quot;, &quot;roman&quot;,
+  &quot;romanlow&quot;, &quot;saur&quot;, &quot;sund&quot;, &quot;talu&quot;, &quot;taml&quot;, &quot;tamldec&quot;, &quot;telu&quot;, &quot;thai&quot;, &quot;tibt&quot;,
+  &quot;vaii&quot;
+]
+for (let numberingSystem of numberingSystems) {
+  shouldBe(`Intl.DateTimeFormat('en-u-nu-${numberingSystem}').resolvedOptions().numberingSystem`, `'${numberingSystem}'`);
+}
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { weekday: { toString() { throw 'weekday' } } })&quot;, &quot;'weekday'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { weekday:'invalid' })&quot;, '\'RangeError: weekday must be &quot;narrow&quot;, &quot;short&quot;, or &quot;long&quot;\'');
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().weekday&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { weekday:'narrow', month:'numeric', day:'numeric' }).resolvedOptions().weekday&quot;, &quot;'narrow'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { weekday:'short', month:'numeric', day:'numeric' }).resolvedOptions().weekday&quot;, &quot;'short'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { weekday:'long', month:'numeric', day:'numeric' }).resolvedOptions().weekday&quot;, &quot;'long'&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { era: { toString() { throw 'era' } } })&quot;, &quot;'era'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { era:'never' })&quot;, '\'RangeError: era must be &quot;narrow&quot;, &quot;short&quot;, or &quot;long&quot;\'');
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().day&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { era:'narrow', year:'numeric' }).resolvedOptions().era&quot;, &quot;'narrow'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { era:'short', year:'numeric' }).resolvedOptions().era&quot;, &quot;'short'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { era:'long', year:'numeric' }).resolvedOptions().era&quot;, &quot;'long'&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { year: { toString() { throw 'year' } } })&quot;, &quot;'year'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { year:'nope' })&quot;, '\'RangeError: year must be &quot;2-digit&quot; or &quot;numeric&quot;\'');
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().year&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { era:'narrow', year:'2-digit' }).resolvedOptions().year&quot;, &quot;'2-digit'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { era:'narrow', year:'numeric' }).resolvedOptions().year&quot;, &quot;'numeric'&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { month: { toString() { throw 'month' } } })&quot;, &quot;'month'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { month:2 })&quot;, '\'RangeError: month must be &quot;2-digit&quot;, &quot;numeric&quot;, &quot;narrow&quot;, &quot;short&quot;, or &quot;long&quot;\'');
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().month&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { month:'2-digit', year:'numeric' }).resolvedOptions().month&quot;, &quot;'2-digit'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { month:'numeric', year:'numeric' }).resolvedOptions().month&quot;, &quot;'numeric'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { month:'narrow', year:'numeric' }).resolvedOptions().month&quot;, &quot;'narrow'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { month:'short', year:'numeric' }).resolvedOptions().month&quot;, &quot;'short'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { month:'long', year:'numeric' }).resolvedOptions().month&quot;, &quot;'long'&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { day: { toString() { throw 'day' } } })&quot;, &quot;'day'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { day:'' })&quot;, '\'RangeError: day must be &quot;2-digit&quot; or &quot;numeric&quot;\'');
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().day&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { month:'long', day:'2-digit' }).resolvedOptions().day&quot;, &quot;'2-digit'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { month:'long', day:'numeric' }).resolvedOptions().day&quot;, &quot;'numeric'&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { hour: { toString() { throw 'hour' } } })&quot;, &quot;'hour'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { hour:[] })&quot;, '\'RangeError: hour must be &quot;2-digit&quot; or &quot;numeric&quot;\'');
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().hour&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'2-digit', hour:'2-digit' }).resolvedOptions().hour&quot;, &quot;'numeric'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().hour&quot;, &quot;'numeric'&quot;);
+
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().hour12&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().hour12&quot;, &quot;true&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('pt-BR', { minute:'2-digit', hour:'numeric' }).resolvedOptions().hour12&quot;, &quot;false&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { minute: { toString() { throw 'minute' } } })&quot;, &quot;'minute'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { minute:null })&quot;, '\'RangeError: minute must be &quot;2-digit&quot; or &quot;numeric&quot;\'');
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().minute&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric' }).resolvedOptions().minute&quot;, &quot;'2-digit'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'numeric', hour:'numeric' }).resolvedOptions().minute&quot;, &quot;'2-digit'&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { second: { toString() { throw 'second' } } })&quot;, &quot;'second'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { second:'badvalue' })&quot;, '\'RangeError: second must be &quot;2-digit&quot; or &quot;numeric&quot;\'');
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().second&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'numeric', hour:'numeric', second:'2-digit' }).resolvedOptions().second&quot;, &quot;'2-digit'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'numeric', hour:'numeric', second:'numeric' }).resolvedOptions().second&quot;, &quot;'2-digit'&quot;);
+
+shouldThrow(&quot;Intl.DateTimeFormat('en', { timeZoneName: { toString() { throw 'timeZoneName' } } })&quot;, &quot;'timeZoneName'&quot;);
+shouldThrow(&quot;Intl.DateTimeFormat('en', { timeZoneName:'name' })&quot;, '\'RangeError: timeZoneName must be &quot;short&quot; or &quot;long&quot;\'');
+shouldBe(&quot;Intl.DateTimeFormat('en').resolvedOptions().timeZoneName&quot;, &quot;undefined&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('en', { minute:'2-digit', hour:'numeric', timeZoneName:'short' }).resolvedOptions().timeZoneName&quot;, &quot;'short'&quot;);
+shouldBe(&quot;Intl.DateTimeFormat('pt-BR', { minute:'2-digit', hour:'numeric', timeZoneName:'long' }).resolvedOptions().timeZoneName&quot;, &quot;'long'&quot;);
+
+let localesSample = [
+  &quot;ar&quot;, &quot;ar-SA&quot;, &quot;be&quot;, &quot;ca&quot;, &quot;cs&quot;, &quot;da&quot;, &quot;de&quot;, &quot;de-CH&quot;, &quot;en&quot;, &quot;en-AU&quot;, &quot;en-GB&quot;,
+  &quot;en-PH&quot;, &quot;en-US&quot;, &quot;el&quot;, &quot;es&quot;, &quot;es-MX&quot;, &quot;es-PR&quot;, &quot;fr&quot;, &quot;fr-CA&quot;, &quot;ga&quot;, &quot;hi-IN&quot;,
+  &quot;is&quot;, &quot;it&quot;, &quot;iw&quot;, &quot;ja&quot;, &quot;ko-KR&quot;, &quot;lt&quot;, &quot;lv&quot;, &quot;mk&quot;, &quot;ms&quot;, &quot;mt&quot;, &quot;nb&quot;, &quot;nl&quot;,
+  &quot;no&quot;, &quot;pl&quot;, &quot;pt&quot;, &quot;pt-BR&quot;, &quot;ro&quot;, &quot;ru&quot;, &quot;sk&quot;, &quot;sl&quot;, &quot;sr&quot;, &quot;sv&quot;, &quot;th&quot;, &quot;tr&quot;,
+  &quot;uk&quot;, &quot;vi&quot;, &quot;zh&quot;, &quot;zh-CN&quot;, &quot;zh-Hant-HK&quot;, &quot;zh-TW&quot;
+];
+for (let locale of localesSample) {
+  // The following subsets must be available for each locale:
+  // weekday, year, month, day, hour, minute, second
+  shouldBeTrue(`
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot;, hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;${locale}&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null)`);
+  // weekday, year, month, day
+  shouldBeTrue(`
+    var options = { weekday: &quot;short&quot;, year: &quot;numeric&quot;, month: &quot;short&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;${locale}&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null)`);
+  // year, month, day
+  shouldBeTrue(`
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;${locale}&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null)`);
+  // year, month
+  shouldBeTrue(`
+    var options = { year: &quot;numeric&quot;, month: &quot;long&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;${locale}&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null)`);
+  // month, day
+  shouldBeTrue(`
+    var options = { month: &quot;long&quot;, day: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;${locale}&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null)`);
+  // hour, minute, second
+  shouldBeTrue(`
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot;, second: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;${locale}&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null)`);
+  // hour, minute
+  shouldBeTrue(`
+    var options = { hour: &quot;numeric&quot;, minute: &quot;numeric&quot; };
+    var resolved = Intl.DateTimeFormat(&quot;${locale}&quot;, options).resolvedOptions();
+    Object.keys(options).every(option =&gt; resolved[option] != null)`);
+}
</ins></span></pre></div>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/Source/JavaScriptCore/ChangeLog        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -1,3 +1,49 @@
</span><ins>+2015-12-23  Andy VanWagoner  &lt;andy@instructure.com&gt;
+
+        [INTL] Implement Intl.DateTimeFormat.prototype.resolvedOptions ()
+        https://bugs.webkit.org/show_bug.cgi?id=147603
+
+        Reviewed by Benjamin Poulain.
+
+        Implements InitializeDateTimeFormat and related abstract operations
+        using ICU. Lazy initialization is used for DateTimeFormat.prototype.
+        Refactor to align with Collator work.
+
+        * icu/unicode/udatpg.h: Added.
+        * icu/unicode/unumsys.h: Added.
+        * runtime/CommonIdentifiers.h:
+        * runtime/IntlDateTimeFormat.cpp:
+        (JSC::defaultTimeZone):
+        (JSC::canonicalizeTimeZoneName):
+        (JSC::localeData):
+        (JSC::toDateTimeOptions):
+        (JSC::IntlDateTimeFormat::setFormatsFromPattern):
+        (JSC::IntlDateTimeFormat::initializeDateTimeFormat):
+        (JSC::IntlDateTimeFormat::weekdayString):
+        (JSC::IntlDateTimeFormat::eraString):
+        (JSC::IntlDateTimeFormat::yearString):
+        (JSC::IntlDateTimeFormat::monthString):
+        (JSC::IntlDateTimeFormat::dayString):
+        (JSC::IntlDateTimeFormat::hourString):
+        (JSC::IntlDateTimeFormat::minuteString):
+        (JSC::IntlDateTimeFormat::secondString):
+        (JSC::IntlDateTimeFormat::timeZoneNameString):
+        (JSC::IntlDateTimeFormat::resolvedOptions):
+        (JSC::IntlDateTimeFormat::format):
+        (JSC::IntlDateTimeFormatFuncFormatDateTime): Deleted.
+        * runtime/IntlDateTimeFormat.h:
+        * runtime/IntlDateTimeFormatConstructor.cpp:
+        (JSC::constructIntlDateTimeFormat):
+        (JSC::callIntlDateTimeFormat):
+        * runtime/IntlDateTimeFormatPrototype.cpp:
+        (JSC::IntlDateTimeFormatFuncFormatDateTime):
+        (JSC::IntlDateTimeFormatPrototypeGetterFormat):
+        (JSC::IntlDateTimeFormatPrototypeFuncResolvedOptions):
+        * runtime/IntlObject.cpp:
+        (JSC::resolveLocale):
+        (JSC::getNumberingSystemsForLocale):
+        * runtime/IntlObject.h:
+
</ins><span class="cx"> 2015-12-22  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION(194382): FTL B3 no longer runs V8/encrypt
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreicuunicodeudatpgh"></a>
<div class="addfile"><h4>Added: trunk/Source/JavaScriptCore/icu/unicode/udatpg.h (0 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/icu/unicode/udatpg.h                                (rev 0)
+++ trunk/Source/JavaScriptCore/icu/unicode/udatpg.h        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -0,0 +1,586 @@
</span><ins>+/*
+*******************************************************************************
+*
+*   Copyright (C) 2007-2010, International Business Machines
+*   Corporation and others.  All Rights Reserved.
+*
+*******************************************************************************
+*   file name:  udatpg.h
+*   encoding:   US-ASCII
+*   tab size:   8 (not used)
+*   indentation:4
+*
+*   created on: 2007jul30
+*   created by: Markus W. Scherer
+*/
+
+#ifndef __UDATPG_H__
+#define __UDATPG_H__
+
+#include &quot;unicode/utypes.h&quot;
+#include &quot;unicode/uenum.h&quot;
+#include &quot;unicode/localpointer.h&quot;
+
+/**
+ * \file
+ * \brief C API: Wrapper for DateTimePatternGenerator (unicode/dtptngen.h).
+ *
+ * UDateTimePatternGenerator provides flexible generation of date format patterns, 
+ * like &quot;yy-MM-dd&quot;. The user can build up the generator by adding successive 
+ * patterns. Once that is done, a query can be made using a &quot;skeleton&quot;, which is 
+ * a pattern which just includes the desired fields and lengths. The generator 
+ * will return the &quot;best fit&quot; pattern corresponding to that skeleton.
+ * &lt;p&gt;The main method people will use is udatpg_getBestPattern, since normally
+ * UDateTimePatternGenerator is pre-built with data from a particular locale. 
+ * However, generators can be built directly from other data as well.
+ * &lt;p&gt;&lt;i&gt;Issue: may be useful to also have a function that returns the list of 
+ * fields in a pattern, in order, since we have that internally.
+ * That would be useful for getting the UI order of field elements.&lt;/i&gt;
+ */
+
+/**
+ * Opaque type for a date/time pattern generator object.
+ * @stable ICU 3.8
+ */
+typedef void *UDateTimePatternGenerator;
+
+/**
+ * Field number constants for udatpg_getAppendItemFormats() and similar functions.
+ * These constants are separate from UDateFormatField despite semantic overlap
+ * because some fields are merged for the date/time pattern generator.
+ * @stable ICU 3.8
+ */
+typedef enum UDateTimePatternField {
+    /** @stable ICU 3.8 */
+    UDATPG_ERA_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_YEAR_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_QUARTER_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_MONTH_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_WEEK_OF_YEAR_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_WEEK_OF_MONTH_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_WEEKDAY_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_DAY_OF_YEAR_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_DAY_OF_WEEK_IN_MONTH_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_DAY_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_DAYPERIOD_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_HOUR_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_MINUTE_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_SECOND_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_FRACTIONAL_SECOND_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_ZONE_FIELD,
+    /** @stable ICU 3.8 */
+    UDATPG_FIELD_COUNT
+} UDateTimePatternField;
+
+/**
+ * Masks to control forcing the length of specified fields in the returned
+ * pattern to match those in the skeleton (when this would not happen
+ * otherwise). These may be combined to force the length of multiple fields.
+ * Used with udatpg_getBestPatternWithOptions, udatpg_replaceFieldTypesWithOptions.
+ * @stable ICU 4.4
+ */
+typedef enum UDateTimePatternMatchOptions {
+    /** @stable ICU 4.4 */
+    UDATPG_MATCH_NO_OPTIONS = 0,
+    /** @stable ICU 4.4 */
+    UDATPG_MATCH_HOUR_FIELD_LENGTH = 1 &lt;&lt; UDATPG_HOUR_FIELD,
+    /** @internal ICU 4.4 */
+    UDATPG_MATCH_MINUTE_FIELD_LENGTH = 1 &lt;&lt; UDATPG_MINUTE_FIELD,
+    /** @internal ICU 4.4 */
+    UDATPG_MATCH_SECOND_FIELD_LENGTH = 1 &lt;&lt; UDATPG_SECOND_FIELD,
+    /** @stable ICU 4.4 */
+    UDATPG_MATCH_ALL_FIELDS_LENGTH = (1 &lt;&lt; UDATPG_FIELD_COUNT) - 1
+} UDateTimePatternMatchOptions;
+
+/**
+ * Status return values from udatpg_addPattern().
+ * @stable ICU 3.8
+ */
+typedef enum UDateTimePatternConflict {
+    /** @stable ICU 3.8 */
+    UDATPG_NO_CONFLICT,
+    /** @stable ICU 3.8 */
+    UDATPG_BASE_CONFLICT,
+    /** @stable ICU 3.8 */
+    UDATPG_CONFLICT,
+    /** @stable ICU 3.8 */
+    UDATPG_CONFLICT_COUNT
+} UDateTimePatternConflict;
+
+/**
+  * Open a generator according to a given locale.
+  * @param locale
+  * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+  *                   failure before the function call.
+  * @return a pointer to UDateTimePatternGenerator.
+  * @stable ICU 3.8
+  */
+U_STABLE UDateTimePatternGenerator * U_EXPORT2
+udatpg_open(const char *locale, UErrorCode *pErrorCode);
+
+/**
+  * Open an empty generator, to be constructed with udatpg_addPattern(...) etc.
+  * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+  *                   failure before the function call.
+  * @return a pointer to UDateTimePatternGenerator.
+  * @stable ICU 3.8
+  */
+U_STABLE UDateTimePatternGenerator * U_EXPORT2
+udatpg_openEmpty(UErrorCode *pErrorCode);
+
+/**
+  * Close a generator.
+  * @param dtpg a pointer to UDateTimePatternGenerator.
+  * @stable ICU 3.8
+  */
+U_STABLE void U_EXPORT2
+udatpg_close(UDateTimePatternGenerator *dtpg);
+
+#if U_SHOW_CPLUSPLUS_API
+
+U_NAMESPACE_BEGIN
+
+/**
+ * \class LocalUDateTimePatternGeneratorPointer
+ * &quot;Smart pointer&quot; class, closes a UDateTimePatternGenerator via udatpg_close().
+ * For most methods see the LocalPointerBase base class.
+ *
+ * @see LocalPointerBase
+ * @see LocalPointer
+ * @stable ICU 4.4
+ */
+U_DEFINE_LOCAL_OPEN_POINTER(LocalUDateTimePatternGeneratorPointer, UDateTimePatternGenerator, udatpg_close);
+
+U_NAMESPACE_END
+
+#endif
+
+/**
+  * Create a copy pf a generator.
+  * @param dtpg a pointer to UDateTimePatternGenerator to be copied.
+  * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+  *                   failure before the function call.
+  * @return a pointer to a new UDateTimePatternGenerator.
+  * @stable ICU 3.8
+ */
+U_STABLE UDateTimePatternGenerator * U_EXPORT2
+udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode);
+
+/**
+ * Get the best pattern matching the input skeleton. It is guaranteed to
+ * have all of the fields in the skeleton.
+ * 
+ * Note that this function uses a non-const UDateTimePatternGenerator:
+ * It uses a stateful pattern parser which is set up for each generator object,
+ * rather than creating one for each function call.
+ * Consecutive calls to this function do not affect each other,
+ * but this function cannot be used concurrently on a single generator object.
+ * 
+ * @param dtpg a pointer to UDateTimePatternGenerator.
+ * @param skeleton
+ *            The skeleton is a pattern containing only the variable fields.
+ *            For example, &quot;MMMdd&quot; and &quot;mmhh&quot; are skeletons.
+ * @param length the length of skeleton
+ * @param bestPattern
+ *            The best pattern found from the given skeleton.
+ * @param capacity the capacity of bestPattern.
+ * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+ *                   failure before the function call.
+ * @return the length of bestPattern.
+ * @stable ICU 3.8
+ */
+U_STABLE int32_t U_EXPORT2
+udatpg_getBestPattern(UDateTimePatternGenerator *dtpg,
+                      const UChar *skeleton, int32_t length,
+                      UChar *bestPattern, int32_t capacity,
+                      UErrorCode *pErrorCode);
+
+/**
+ * Get the best pattern matching the input skeleton. It is guaranteed to
+ * have all of the fields in the skeleton.
+ * 
+ * Note that this function uses a non-const UDateTimePatternGenerator:
+ * It uses a stateful pattern parser which is set up for each generator object,
+ * rather than creating one for each function call.
+ * Consecutive calls to this function do not affect each other,
+ * but this function cannot be used concurrently on a single generator object.
+ * 
+ * @param dtpg a pointer to UDateTimePatternGenerator.
+ * @param skeleton
+ *            The skeleton is a pattern containing only the variable fields.
+ *            For example, &quot;MMMdd&quot; and &quot;mmhh&quot; are skeletons.
+ * @param length the length of skeleton
+ * @param options
+ *            Options for forcing the length of specified fields in the
+ *            returned pattern to match those in the skeleton (when this
+ *            would not happen otherwise). For default behavior, use
+ *            UDATPG_MATCH_NO_OPTIONS.
+ * @param bestPattern
+ *            The best pattern found from the given skeleton.
+ * @param capacity
+ *            the capacity of bestPattern.
+ * @param pErrorCode
+ *            a pointer to the UErrorCode which must not indicate a
+ *            failure before the function call.
+ * @return the length of bestPattern.
+ * @stable ICU 4.4
+ */
+U_STABLE int32_t U_EXPORT2
+udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg,
+                                 const UChar *skeleton, int32_t length,
+                                 UDateTimePatternMatchOptions options,
+                                 UChar *bestPattern, int32_t capacity,
+                                 UErrorCode *pErrorCode);
+
+/**
+  * Get a unique skeleton from a given pattern. For example,
+  * both &quot;MMM-dd&quot; and &quot;dd/MMM&quot; produce the skeleton &quot;MMMdd&quot;.
+  * 
+  * Note that this function uses a non-const UDateTimePatternGenerator:
+  * It uses a stateful pattern parser which is set up for each generator object,
+  * rather than creating one for each function call.
+  * Consecutive calls to this function do not affect each other,
+  * but this function cannot be used concurrently on a single generator object.
+  *
+  * @param dtpg     a pointer to UDateTimePatternGenerator.
+  * @param pattern  input pattern, such as &quot;dd/MMM&quot;.
+  * @param length   the length of pattern.
+  * @param skeleton such as &quot;MMMdd&quot;
+  * @param capacity the capacity of skeleton.
+  * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+  *                  failure before the function call.
+  * @return the length of skeleton.
+  * @stable ICU 3.8
+  */
+U_STABLE int32_t U_EXPORT2
+udatpg_getSkeleton(UDateTimePatternGenerator *dtpg,
+                   const UChar *pattern, int32_t length,
+                   UChar *skeleton, int32_t capacity,
+                   UErrorCode *pErrorCode);
+
+/**
+ * Get a unique base skeleton from a given pattern. This is the same
+ * as the skeleton, except that differences in length are minimized so
+ * as to only preserve the difference between string and numeric form. So
+ * for example, both &quot;MMM-dd&quot; and &quot;d/MMM&quot; produce the skeleton &quot;MMMd&quot;
+ * (notice the single d).
+ *
+ * Note that this function uses a non-const UDateTimePatternGenerator:
+ * It uses a stateful pattern parser which is set up for each generator object,
+ * rather than creating one for each function call.
+ * Consecutive calls to this function do not affect each other,
+ * but this function cannot be used concurrently on a single generator object.
+ *
+ * @param dtpg     a pointer to UDateTimePatternGenerator.
+ * @param pattern  input pattern, such as &quot;dd/MMM&quot;.
+ * @param length   the length of pattern.
+ * @param baseSkeleton such as &quot;Md&quot;
+ * @param capacity the capacity of base skeleton.
+ * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+ *                  failure before the function call.
+ * @return the length of baseSkeleton.
+ * @stable ICU 3.8
+ */
+U_STABLE int32_t U_EXPORT2
+udatpg_getBaseSkeleton(UDateTimePatternGenerator *dtpg,
+                       const UChar *pattern, int32_t length,
+                       UChar *baseSkeleton, int32_t capacity,
+                       UErrorCode *pErrorCode);
+
+/**
+ * Adds a pattern to the generator. If the pattern has the same skeleton as
+ * an existing pattern, and the override parameter is set, then the previous
+ * value is overriden. Otherwise, the previous value is retained. In either
+ * case, the conflicting status is set and previous vale is stored in 
+ * conflicting pattern.
+ * &lt;p&gt;
+ * Note that single-field patterns (like &quot;MMM&quot;) are automatically added, and
+ * don't need to be added explicitly!
+ *
+ * @param dtpg     a pointer to UDateTimePatternGenerator.
+ * @param pattern  input pattern, such as &quot;dd/MMM&quot;
+ * @param patternLength the length of pattern.
+ * @param override  When existing values are to be overridden use true, 
+ *                  otherwise use false.
+ * @param conflictingPattern  Previous pattern with the same skeleton.
+ * @param capacity the capacity of conflictingPattern.
+ * @param pLength a pointer to the length of conflictingPattern.
+ * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+ *                  failure before the function call.
+ * @return conflicting status. The value could be UDATPG_NO_CONFLICT, 
+ *                  UDATPG_BASE_CONFLICT or UDATPG_CONFLICT.
+ * @stable ICU 3.8
+ */
+U_STABLE UDateTimePatternConflict U_EXPORT2
+udatpg_addPattern(UDateTimePatternGenerator *dtpg,
+                  const UChar *pattern, int32_t patternLength,
+                  UBool override,
+                  UChar *conflictingPattern, int32_t capacity, int32_t *pLength,
+                  UErrorCode *pErrorCode);
+
+/**
+  * An AppendItem format is a pattern used to append a field if there is no
+  * good match. For example, suppose that the input skeleton is &quot;GyyyyMMMd&quot;,
+  * and there is no matching pattern internally, but there is a pattern
+  * matching &quot;yyyyMMMd&quot;, say &quot;d-MM-yyyy&quot;. Then that pattern is used, plus the
+  * G. The way these two are conjoined is by using the AppendItemFormat for G
+  * (era). So if that value is, say &quot;{0}, {1}&quot; then the final resulting
+  * pattern is &quot;d-MM-yyyy, G&quot;.
+  * &lt;p&gt;
+  * There are actually three available variables: {0} is the pattern so far,
+  * {1} is the element we are adding, and {2} is the name of the element.
+  * &lt;p&gt;
+  * This reflects the way that the CLDR data is organized.
+  *
+  * @param dtpg   a pointer to UDateTimePatternGenerator.
+  * @param field  UDateTimePatternField, such as UDATPG_ERA_FIELD
+  * @param value  pattern, such as &quot;{0}, {1}&quot;
+  * @param length the length of value.
+  * @stable ICU 3.8
+  */
+U_STABLE void U_EXPORT2
+udatpg_setAppendItemFormat(UDateTimePatternGenerator *dtpg,
+                           UDateTimePatternField field,
+                           const UChar *value, int32_t length);
+
+/**
+ * Getter corresponding to setAppendItemFormat. Values below 0 or at or
+ * above UDATPG_FIELD_COUNT are illegal arguments.
+ *
+ * @param dtpg   A pointer to UDateTimePatternGenerator.
+ * @param field  UDateTimePatternField, such as UDATPG_ERA_FIELD
+ * @param pLength A pointer that will receive the length of appendItemFormat.
+ * @return appendItemFormat for field.
+ * @stable ICU 3.8
+ */
+U_STABLE const UChar * U_EXPORT2
+udatpg_getAppendItemFormat(const UDateTimePatternGenerator *dtpg,
+                           UDateTimePatternField field,
+                           int32_t *pLength);
+
+/**
+   * Set the name of field, eg &quot;era&quot; in English for ERA. These are only
+   * used if the corresponding AppendItemFormat is used, and if it contains a
+   * {2} variable.
+   * &lt;p&gt;
+   * This reflects the way that the CLDR data is organized.
+   *
+   * @param dtpg   a pointer to UDateTimePatternGenerator.
+   * @param field  UDateTimePatternField
+   * @param value  name for the field.
+   * @param length the length of value.
+   * @stable ICU 3.8
+   */
+U_STABLE void U_EXPORT2
+udatpg_setAppendItemName(UDateTimePatternGenerator *dtpg,
+                         UDateTimePatternField field,
+                         const UChar *value, int32_t length);
+
+/**
+ * Getter corresponding to setAppendItemNames. Values below 0 or at or above
+ * UDATPG_FIELD_COUNT are illegal arguments.
+ *
+ * @param dtpg   a pointer to UDateTimePatternGenerator.
+ * @param field  UDateTimePatternField, such as UDATPG_ERA_FIELD
+ * @param pLength A pointer that will receive the length of the name for field.
+ * @return name for field
+ * @stable ICU 3.8
+ */
+U_STABLE const UChar * U_EXPORT2
+udatpg_getAppendItemName(const UDateTimePatternGenerator *dtpg,
+                         UDateTimePatternField field,
+                         int32_t *pLength);
+
+/**
+ * The date time format is a message format pattern used to compose date and
+ * time patterns. The default value is &quot;{0} {1}&quot;, where {0} will be replaced
+ * by the date pattern and {1} will be replaced by the time pattern.
+ * &lt;p&gt;
+ * This is used when the input skeleton contains both date and time fields,
+ * but there is not a close match among the added patterns. For example,
+ * suppose that this object was created by adding &quot;dd-MMM&quot; and &quot;hh:mm&quot;, and
+ * its datetimeFormat is the default &quot;{0} {1}&quot;. Then if the input skeleton
+ * is &quot;MMMdhmm&quot;, there is not an exact match, so the input skeleton is
+ * broken up into two components &quot;MMMd&quot; and &quot;hmm&quot;. There are close matches
+ * for those two skeletons, so the result is put together with this pattern,
+ * resulting in &quot;d-MMM h:mm&quot;.
+ *
+ * @param dtpg a pointer to UDateTimePatternGenerator.
+ * @param dtFormat
+ *            message format pattern, here {0} will be replaced by the date
+ *            pattern and {1} will be replaced by the time pattern.
+ * @param length the length of dtFormat.
+ * @stable ICU 3.8
+ */
+U_STABLE void U_EXPORT2
+udatpg_setDateTimeFormat(const UDateTimePatternGenerator *dtpg,
+                         const UChar *dtFormat, int32_t length);
+
+/**
+ * Getter corresponding to setDateTimeFormat.
+ * @param dtpg   a pointer to UDateTimePatternGenerator.
+ * @param pLength A pointer that will receive the length of the format
+ * @return dateTimeFormat.
+ * @stable ICU 3.8
+ */
+U_STABLE const UChar * U_EXPORT2
+udatpg_getDateTimeFormat(const UDateTimePatternGenerator *dtpg,
+                         int32_t *pLength);
+
+/**
+ * The decimal value is used in formatting fractions of seconds. If the
+ * skeleton contains fractional seconds, then this is used with the
+ * fractional seconds. For example, suppose that the input pattern is
+ * &quot;hhmmssSSSS&quot;, and the best matching pattern internally is &quot;H:mm:ss&quot;, and
+ * the decimal string is &quot;,&quot;. Then the resulting pattern is modified to be
+ * &quot;H:mm:ss,SSSS&quot;
+ *
+ * @param dtpg a pointer to UDateTimePatternGenerator.
+ * @param decimal
+ * @param length the length of decimal.
+ * @stable ICU 3.8
+ */
+U_STABLE void U_EXPORT2
+udatpg_setDecimal(UDateTimePatternGenerator *dtpg,
+                  const UChar *decimal, int32_t length);
+
+/**
+ * Getter corresponding to setDecimal.
+ * 
+ * @param dtpg a pointer to UDateTimePatternGenerator.
+ * @param pLength A pointer that will receive the length of the decimal string.
+ * @return corresponding to the decimal point.
+ * @stable ICU 3.8
+ */
+U_STABLE const UChar * U_EXPORT2
+udatpg_getDecimal(const UDateTimePatternGenerator *dtpg,
+                  int32_t *pLength);
+
+/**
+ * Adjusts the field types (width and subtype) of a pattern to match what is
+ * in a skeleton. That is, if you supply a pattern like &quot;d-M H:m&quot;, and a
+ * skeleton of &quot;MMMMddhhmm&quot;, then the input pattern is adjusted to be
+ * &quot;dd-MMMM hh:mm&quot;. This is used internally to get the best match for the
+ * input skeleton, but can also be used externally.
+ *
+ * Note that this function uses a non-const UDateTimePatternGenerator:
+ * It uses a stateful pattern parser which is set up for each generator object,
+ * rather than creating one for each function call.
+ * Consecutive calls to this function do not affect each other,
+ * but this function cannot be used concurrently on a single generator object.
+ *
+ * @param dtpg a pointer to UDateTimePatternGenerator.
+ * @param pattern Input pattern
+ * @param patternLength the length of input pattern.
+ * @param skeleton
+ * @param skeletonLength the length of input skeleton.
+ * @param dest  pattern adjusted to match the skeleton fields widths and subtypes.
+ * @param destCapacity the capacity of dest.
+ * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+ *                  failure before the function call.
+ * @return the length of dest.
+ * @stable ICU 3.8
+ */
+U_STABLE int32_t U_EXPORT2
+udatpg_replaceFieldTypes(UDateTimePatternGenerator *dtpg,
+                         const UChar *pattern, int32_t patternLength,
+                         const UChar *skeleton, int32_t skeletonLength,
+                         UChar *dest, int32_t destCapacity,
+                         UErrorCode *pErrorCode);
+
+/**
+ * Adjusts the field types (width and subtype) of a pattern to match what is
+ * in a skeleton. That is, if you supply a pattern like &quot;d-M H:m&quot;, and a
+ * skeleton of &quot;MMMMddhhmm&quot;, then the input pattern is adjusted to be
+ * &quot;dd-MMMM hh:mm&quot;. This is used internally to get the best match for the
+ * input skeleton, but can also be used externally.
+ *
+ * Note that this function uses a non-const UDateTimePatternGenerator:
+ * It uses a stateful pattern parser which is set up for each generator object,
+ * rather than creating one for each function call.
+ * Consecutive calls to this function do not affect each other,
+ * but this function cannot be used concurrently on a single generator object.
+ *
+ * @param dtpg a pointer to UDateTimePatternGenerator.
+ * @param pattern Input pattern
+ * @param patternLength the length of input pattern.
+ * @param skeleton
+ * @param skeletonLength the length of input skeleton.
+ * @param options
+ *            Options controlling whether the length of specified fields in the
+ *            pattern are adjusted to match those in the skeleton (when this
+ *            would not happen otherwise). For default behavior, use
+ *            UDATPG_MATCH_NO_OPTIONS.
+ * @param dest  pattern adjusted to match the skeleton fields widths and subtypes.
+ * @param destCapacity the capacity of dest.
+ * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+ *                  failure before the function call.
+ * @return the length of dest.
+ * @stable ICU 4.4
+ */
+U_STABLE int32_t U_EXPORT2
+udatpg_replaceFieldTypesWithOptions(UDateTimePatternGenerator *dtpg,
+                                    const UChar *pattern, int32_t patternLength,
+                                    const UChar *skeleton, int32_t skeletonLength,
+                                    UDateTimePatternMatchOptions options,
+                                    UChar *dest, int32_t destCapacity,
+                                    UErrorCode *pErrorCode);
+
+/**
+ * Return a UEnumeration list of all the skeletons in canonical form.
+ * Call udatpg_getPatternForSkeleton() to get the corresponding pattern.
+ * 
+ * @param dtpg a pointer to UDateTimePatternGenerator.
+ * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+ *                  failure before the function call
+ * @return a UEnumeration list of all the skeletons
+ *         The caller must close the object.
+ * @stable ICU 3.8
+ */
+U_STABLE UEnumeration * U_EXPORT2
+udatpg_openSkeletons(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode);
+
+/**
+ * Return a UEnumeration list of all the base skeletons in canonical form.
+ *
+ * @param dtpg a pointer to UDateTimePatternGenerator.
+ * @param pErrorCode a pointer to the UErrorCode which must not indicate a
+ *             failure before the function call.
+ * @return a UEnumeration list of all the base skeletons
+ *             The caller must close the object.
+ * @stable ICU 3.8
+ */
+U_STABLE UEnumeration * U_EXPORT2
+udatpg_openBaseSkeletons(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode);
+
+/**
+ * Get the pattern corresponding to a given skeleton.
+ * 
+ * @param dtpg a pointer to UDateTimePatternGenerator.
+ * @param skeleton 
+ * @param skeletonLength pointer to the length of skeleton.
+ * @param pLength pointer to the length of return pattern.
+ * @return pattern corresponding to a given skeleton.
+ * @stable ICU 3.8
+ */
+U_STABLE const UChar * U_EXPORT2
+udatpg_getPatternForSkeleton(const UDateTimePatternGenerator *dtpg,
+                             const UChar *skeleton, int32_t skeletonLength,
+                             int32_t *pLength);
+
+#endif
</ins></span></pre></div>
<a id="trunkSourceJavaScriptCoreicuunicodeunumsysh"></a>
<div class="addfile"><h4>Added: trunk/Source/JavaScriptCore/icu/unicode/unumsys.h (0 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/icu/unicode/unumsys.h                                (rev 0)
+++ trunk/Source/JavaScriptCore/icu/unicode/unumsys.h        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -0,0 +1,174 @@
</span><ins>+/*
+*****************************************************************************************
+* Copyright (C) 2013, International Business Machines
+* Corporation and others. All Rights Reserved.
+*****************************************************************************************
+*/
+
+#ifndef UNUMSYS_H
+#define UNUMSYS_H
+
+#include &quot;unicode/utypes.h&quot;
+
+#if !UCONFIG_NO_FORMATTING
+
+#include &quot;unicode/uenum.h&quot;
+#include &quot;unicode/localpointer.h&quot;
+
+/**
+ * \file
+ * \brief C API: UNumberingSystem, information about numbering systems
+ *
+ * Defines numbering systems. A numbering system describes the scheme by which 
+ * numbers are to be presented to the end user. In its simplest form, a numbering
+ * system describes the set of digit characters that are to be used to display
+ * numbers, such as Western digits, Thai digits, Arabic-Indic digits, etc., in a
+ * positional numbering system with a specified radix (typically 10).
+ * More complicated numbering systems are algorithmic in nature, and require use
+ * of an RBNF formatter (rule based number formatter), in order to calculate
+ * the characters to be displayed for a given number. Examples of algorithmic
+ * numbering systems include Roman numerals, Chinese numerals, and Hebrew numerals.
+ * Formatting rules for many commonly used numbering systems are included in
+ * the ICU package, based on the numbering system rules defined in CLDR.
+ * Alternate numbering systems can be specified to a locale by using the
+ * numbers locale keyword.
+ */
+
+#ifndef U_HIDE_DRAFT_API
+
+/**
+ * Opaque UNumberingSystem object for use in C programs.
+ * @draft ICU 52
+ */
+struct UNumberingSystem;
+typedef struct UNumberingSystem UNumberingSystem;  /**&lt; C typedef for struct UNumberingSystem. @draft ICU 52 */
+
+/**
+ * Opens a UNumberingSystem object using the default numbering system for the specified
+ * locale.
+ * @param locale    The locale for which the default numbering system should be opened.
+ * @param status    A pointer to a UErrorCode to receive any errors. For example, this
+ *                  may be U_UNSUPPORTED_ERROR for a locale such as &quot;en@numbers=xyz&quot; that
+ *                  specifies a numbering system unknown to ICU.
+ * @return          A UNumberingSystem for the specified locale, or NULL if an error
+ *                  occurred.
+ * @draft ICU 52
+ */
+U_DRAFT UNumberingSystem * U_EXPORT2
+unumsys_open(const char *locale, UErrorCode *status);
+
+/**
+ * Opens a UNumberingSystem object using the name of one of the predefined numbering
+ * systems specified by CLDR and known to ICU, such as &quot;latn&quot;, &quot;arabext&quot;, or &quot;hanidec&quot;;
+ * the full list is returned by unumsys_openAvailableNames. Note that some of the names
+ * listed at http://unicode.org/repos/cldr/tags/latest/common/bcp47/number.xml - e.g.
+ * default, native, traditional, finance - do not identify specific numbering systems,
+ * but rather key values that may only be used as part of a locale, which in turn
+ * defines how they are mapped to a specific numbering system such as &quot;latn&quot; or &quot;hant&quot;.
+ *
+ * @param name      The name of the numbering system for which a UNumberingSystem object
+ *                  should be opened.
+ * @param status    A pointer to a UErrorCode to receive any errors. For example, this
+ *                  may be U_UNSUPPORTED_ERROR for a numbering system such as &quot;xyz&quot; that
+ *                  is unknown to ICU.
+ * @return          A UNumberingSystem for the specified name, or NULL if an error
+ *                  occurred.
+ * @draft ICU 52
+ */
+U_DRAFT UNumberingSystem * U_EXPORT2
+unumsys_openByName(const char *name, UErrorCode *status);
+
+/**
+ * Close a UNumberingSystem object. Once closed it may no longer be used.
+ * @param unumsys   The UNumberingSystem object to close.
+ * @draft ICU 52
+ */
+U_DRAFT void U_EXPORT2
+unumsys_close(UNumberingSystem *unumsys);
+
+#if U_SHOW_CPLUSPLUS_API
+U_NAMESPACE_BEGIN
+
+/**
+ * \class LocalUNumberingSystemPointer
+ * &quot;Smart pointer&quot; class, closes a UNumberingSystem via unumsys_close().
+ * For most methods see the LocalPointerBase base class.
+ * @see LocalPointerBase
+ * @see LocalPointer
+ * @draft ICU 52
+ */
+U_DEFINE_LOCAL_OPEN_POINTER(LocalUNumberingSystemPointer, UNumberingSystem, unumsys_close);
+
+U_NAMESPACE_END
+#endif
+
+/**
+ * Returns an enumeration over the names of all of the predefined numbering systems known
+ * to ICU.
+ * @param status    A pointer to a UErrorCode to receive any errors.
+ * @return          A pointer to a UEnumeration that must be closed with uenum_close(),
+ *                  or NULL if an error occurred.
+ * @draft ICU 52
+ */
+U_DRAFT UEnumeration * U_EXPORT2
+unumsys_openAvailableNames(UErrorCode *status);
+
+/**
+ * Returns the name of the specified UNumberingSystem object (if it is one of the
+ * predefined names known to ICU).
+ * @param unumsys   The UNumberingSystem whose name is desired.
+ * @return          A pointer to the name of the specified UNumberingSystem object, or
+ *                  NULL if the name is not one of the ICU predefined names. The pointer
+ *                  is only valid for the lifetime of the UNumberingSystem object.
+ * @draft ICU 52
+ */
+U_DRAFT const char * U_EXPORT2
+unumsys_getName(const UNumberingSystem *unumsys);
+
+/**
+ * Returns whether the given UNumberingSystem object is for an algorithmic (not purely
+ * positional) system.
+ * @param unumsys   The UNumberingSystem whose algorithmic status is desired.
+ * @return          TRUE if the specified UNumberingSystem object is for an algorithmic
+ *                  system.
+ * @draft ICU 52
+ */
+U_DRAFT UBool U_EXPORT2
+unumsys_isAlgorithmic(const UNumberingSystem *unumsys);
+
+/**
+ * Returns the radix of the specified UNumberingSystem object. Simple positional
+ * numbering systems typically have radix 10, but might have a radix of e.g. 16 for
+ * hexadecimal. The radix is less well-defined for non-positional algorithmic systems.
+ * @param unumsys   The UNumberingSystem whose radix is desired.
+ * @return          The radix of the specified UNumberingSystem object.
+ * @draft ICU 52
+ */
+U_DRAFT int32_t U_EXPORT2
+unumsys_getRadix(const UNumberingSystem *unumsys);
+
+/**
+ * Get the description string of the specified UNumberingSystem object. For simple
+ * positional systems this is the ordered string of digits (with length matching
+ * the radix), e.g. &quot;\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D&quot;
+ * for &quot;hanidec&quot;; it would be &quot;0123456789ABCDEF&quot; for hexadecimal. For
+ * algorithmic systems this is the name of the RBNF ruleset used for formatting,
+ * e.g. &quot;zh/SpelloutRules/%spellout-cardinal&quot; for &quot;hans&quot; or &quot;%greek-upper&quot; for
+ * &quot;grek&quot;.
+ * @param unumsys   The UNumberingSystem whose description string is desired.
+ * @param result    A pointer to a buffer to receive the description string.
+ * @param resultLength  The maximum size of result.
+ * @param status    A pointer to a UErrorCode to receive any errors.
+ * @return          The total buffer size needed; if greater than resultLength, the
+ *                  output was truncated.
+ * @draft ICU 52
+ */
+U_DRAFT int32_t U_EXPORT2
+unumsys_getDescription(const UNumberingSystem *unumsys, UChar *result,
+                       int32_t resultLength, UErrorCode *status);
+
+#endif  /* U_HIDE_DRAFT_API */
+
+#endif /* #if !UCONFIG_NO_FORMATTING */
+
+#endif
</ins></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeCommonIdentifiersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/CommonIdentifiers.h (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/CommonIdentifiers.h        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/Source/JavaScriptCore/runtime/CommonIdentifiers.h        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -86,6 +86,7 @@
</span><span class="cx">     macro(bytecodeIndex) \
</span><span class="cx">     macro(bytecodes) \
</span><span class="cx">     macro(bytecodesID) \
</span><ins>+    macro(calendar) \
</ins><span class="cx">     macro(callee) \
</span><span class="cx">     macro(caller) \
</span><span class="cx">     macro(caseFirst) \
</span><span class="lines">@@ -101,6 +102,7 @@
</span><span class="cx">     macro(constructor) \
</span><span class="cx">     macro(count) \
</span><span class="cx">     macro(counters) \
</span><ins>+    macro(day) \
</ins><span class="cx">     macro(defineProperty) \
</span><span class="cx">     macro(description) \
</span><span class="cx">     macro(descriptions) \
</span><span class="lines">@@ -109,6 +111,7 @@
</span><span class="cx">     macro(done) \
</span><span class="cx">     macro(entries) \
</span><span class="cx">     macro(enumerable) \
</span><ins>+    macro(era) \
</ins><span class="cx">     macro(eval) \
</span><span class="cx">     macro(exec) \
</span><span class="cx">     macro(executionCount) \
</span><span class="lines">@@ -116,6 +119,7 @@
</span><span class="cx">     macro(flags) \
</span><span class="cx">     macro(focus) \
</span><span class="cx">     macro(forEach) \
</span><ins>+    macro(formatMatcher) \
</ins><span class="cx">     macro(forward) \
</span><span class="cx">     macro(from) \
</span><span class="cx">     macro(fromCharCode) \
</span><span class="lines">@@ -126,6 +130,8 @@
</span><span class="cx">     macro(hasOwnProperty) \
</span><span class="cx">     macro(hash) \
</span><span class="cx">     macro(header) \
</span><ins>+    macro(hour) \
+    macro(hour12) \
</ins><span class="cx">     macro(href) \
</span><span class="cx">     macro(id) \
</span><span class="cx">     macro(ignoreCase) \
</span><span class="lines">@@ -149,10 +155,13 @@
</span><span class="cx">     macro(locale) \
</span><span class="cx">     macro(localeMatcher) \
</span><span class="cx">     macro(message) \
</span><ins>+    macro(minute) \
+    macro(month) \
</ins><span class="cx">     macro(multiline) \
</span><span class="cx">     macro(name) \
</span><span class="cx">     macro(next) \
</span><span class="cx">     macro(now) \
</span><ins>+    macro(numberingSystem) \
</ins><span class="cx">     macro(numInlinedCalls) \
</span><span class="cx">     macro(numInlinedGetByIds) \
</span><span class="cx">     macro(numInlinedPutByIds) \
</span><span class="lines">@@ -172,6 +181,7 @@
</span><span class="cx">     macro(reload) \
</span><span class="cx">     macro(replace) \
</span><span class="cx">     macro(resolve) \
</span><ins>+    macro(second) \
</ins><span class="cx">     macro(sensitivity) \
</span><span class="cx">     macro(set) \
</span><span class="cx">     macro(showModalDialog) \
</span><span class="lines">@@ -185,6 +195,8 @@
</span><span class="cx">     macro(target) \
</span><span class="cx">     macro(test) \
</span><span class="cx">     macro(then) \
</span><ins>+    macro(timeZone) \
+    macro(timeZoneName) \
</ins><span class="cx">     macro(toExponential) \
</span><span class="cx">     macro(toFixed) \
</span><span class="cx">     macro(toISOString) \
</span><span class="lines">@@ -198,8 +210,10 @@
</span><span class="cx">     macro(values) \
</span><span class="cx">     macro(webkit) \
</span><span class="cx">     macro(webkitIndexedDB) \
</span><ins>+    macro(weekday) \
</ins><span class="cx">     macro(window) \
</span><del>-    macro(writable)
</del><ins>+    macro(writable) \
+    macro(year)
</ins><span class="cx"> 
</span><span class="cx"> #define JSC_COMMON_IDENTIFIERS_EACH_KEYWORD(macro) \
</span><span class="cx">     macro(break) \
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeIntlDateTimeFormatcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -28,7 +28,6 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(INTL)
</span><span class="cx"> 
</span><del>-#include &quot;DateConstructor.h&quot;
</del><span class="cx"> #include &quot;DateInstance.h&quot;
</span><span class="cx"> #include &quot;Error.h&quot;
</span><span class="cx"> #include &quot;IntlDateTimeFormatConstructor.h&quot;
</span><span class="lines">@@ -36,13 +35,25 @@
</span><span class="cx"> #include &quot;JSBoundFunction.h&quot;
</span><span class="cx"> #include &quot;JSCJSValueInlines.h&quot;
</span><span class="cx"> #include &quot;JSCellInlines.h&quot;
</span><ins>+#include &quot;ObjectConstructor.h&quot;
</ins><span class="cx"> #include &quot;SlotVisitorInlines.h&quot;
</span><span class="cx"> #include &quot;StructureInlines.h&quot;
</span><ins>+#include &lt;unicode/ucal.h&gt;
+#include &lt;unicode/udat.h&gt;
+#include &lt;unicode/udatpg.h&gt;
+#include &lt;unicode/uenum.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><span class="cx"> const ClassInfo IntlDateTimeFormat::s_info = { &quot;Object&quot;, &amp;Base::s_info, 0, CREATE_METHOD_TABLE(IntlDateTimeFormat) };
</span><span class="cx"> 
</span><ins>+static const char* const relevantExtensionKeys[2] = { &quot;ca&quot;, &quot;nu&quot; };
+static const size_t indexOfExtensionKeyCa = 0;
+static const size_t indexOfExtensionKeyNu = 1;
+
+enum class DateTimeOptionRequired { Date, Time, Any };
+enum class DateTimeOptionDefaults { Date, Time, All };
+
</ins><span class="cx"> IntlDateTimeFormat* IntlDateTimeFormat::create(VM&amp; vm, IntlDateTimeFormatConstructor* constructor)
</span><span class="cx"> {
</span><span class="cx">     IntlDateTimeFormat* format = new (NotNull, allocateCell&lt;IntlDateTimeFormat&gt;(vm.heap)) IntlDateTimeFormat(vm, constructor-&gt;dateTimeFormatStructure());
</span><span class="lines">@@ -86,46 +97,816 @@
</span><span class="cx">     m_boundFormat.set(vm, this, format);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-EncodedJSValue JSC_HOST_CALL IntlDateTimeFormatFuncFormatDateTime(ExecState* state)
</del><ins>+static String defaultTimeZone()
</ins><span class="cx"> {
</span><del>-    // 12.3.4 DateTime Format Functions (ECMA-402 2.0)
-    // 1. Let dtf be the this value.
-    IntlDateTimeFormat* format = jsDynamicCast&lt;IntlDateTimeFormat*&gt;(state-&gt;thisValue());
-    // 2. Assert: Type(dtf) is Object and dtf has an [[initializedDateTimeFormat]] internal slot whose value is true.
-    if (!format)
-        return JSValue::encode(throwTypeError(state));
</del><ins>+    // 6.4.3 DefaultTimeZone () (ECMA-402 2.0)
+    // The DefaultTimeZone abstract operation returns a String value representing the valid (6.4.1) and canonicalized (6.4.2) time zone name for the host environment’s current time zone.
</ins><span class="cx"> 
</span><del>-    JSValue date = state-&gt;argument(0);
-    double value;
</del><ins>+    UErrorCode status = U_ZERO_ERROR;
+    Vector&lt;UChar, 32&gt; buffer(32);
+    auto bufferLength = ucal_getDefaultTimeZone(buffer.data(), buffer.capacity(), &amp;status);
+    if (status == U_BUFFER_OVERFLOW_ERROR) {
+        status = U_ZERO_ERROR;
+        buffer = Vector&lt;UChar, 32&gt;(bufferLength);
+        ucal_getDefaultTimeZone(buffer.data(), bufferLength, &amp;status);
+    }
+    if (U_SUCCESS(status)) {
+        status = U_ZERO_ERROR;
+        UBool isSystemID = false;
+        Vector&lt;UChar, 32&gt; canonicalBuffer(32);
+        auto canonicalLength = ucal_getCanonicalTimeZoneID(buffer.data(), bufferLength, canonicalBuffer.data(), canonicalBuffer.capacity(), &amp;isSystemID, &amp;status);
+        if (status == U_BUFFER_OVERFLOW_ERROR) {
+            status = U_ZERO_ERROR;
+            canonicalBuffer = Vector&lt;UChar, 32&gt;(canonicalLength);
+            ucal_getCanonicalTimeZoneID(buffer.data(), bufferLength, canonicalBuffer.data(), canonicalLength, &amp;isSystemID, &amp;status);
+        }
+        if (U_SUCCESS(status))
+            return String(canonicalBuffer.data(), canonicalLength);
+    }
</ins><span class="cx"> 
</span><del>-    // 3. If date is not provided or is undefined, then
-    if (date.isUndefined()) {
-        // a. Let x be %Date_now%().
-        value = JSValue::decode(dateNow(state)).toNumber(state);
</del><ins>+    return ASCIILiteral(&quot;UTC&quot;);
+}
+
+static String canonicalizeTimeZoneName(const String&amp; timeZoneName)
+{
+    // 6.4.1 IsValidTimeZoneName (timeZone)
+    // The abstract operation returns true if timeZone, converted to upper case as described in 6.1, is equal to one of the Zone or Link names of the IANA Time Zone Database, converted to upper case as described in 6.1. It returns false otherwise.
+    UErrorCode status = U_ZERO_ERROR;
+    UEnumeration* timeZones = ucal_openTimeZones(&amp;status);
+    ASSERT(U_SUCCESS(status));
+
+    String canonical;
+    do {
+        status = U_ZERO_ERROR;
+        int32_t ianaTimeZoneLength;
+        // Time zone names are respresented as UChar[] in all related ICU apis.
+        const UChar* ianaTimeZone = uenum_unext(timeZones, &amp;ianaTimeZoneLength, &amp;status);
+        ASSERT(U_SUCCESS(status));
+
+        // End of enumeration.
+        if (!ianaTimeZone)
+            break;
+
+        StringView ianaTimeZoneView(ianaTimeZone, ianaTimeZoneLength);
+        if (!equalIgnoringASCIICase(timeZoneName, ianaTimeZoneView))
+            continue;
+
+        // Found a match, now canonicalize.
+        // 6.4.2 CanonicalizeTimeZoneName (timeZone) (ECMA-402 2.0)
+        // 1. Let ianaTimeZone be the Zone or Link name of the IANA Time Zone Database such that timeZone, converted to upper case as described in 6.1, is equal to ianaTimeZone, converted to upper case as described in 6.1.
+        // 2. If ianaTimeZone is a Link name, then let ianaTimeZone be the corresponding Zone name as specified in the “backward” file of the IANA Time Zone Database.
+
+        Vector&lt;UChar, 32&gt; buffer(ianaTimeZoneLength);
+        UBool isSystemID = false;
+        status = U_ZERO_ERROR;
+        auto canonicalLength = ucal_getCanonicalTimeZoneID(ianaTimeZone, ianaTimeZoneLength, buffer.data(), ianaTimeZoneLength, &amp;isSystemID, &amp;status);
+        if (status == U_BUFFER_OVERFLOW_ERROR) {
+            buffer = Vector&lt;UChar, 32&gt;(canonicalLength);
+            isSystemID = false;
+            status = U_ZERO_ERROR;
+            ucal_getCanonicalTimeZoneID(ianaTimeZone, ianaTimeZoneLength, buffer.data(), canonicalLength, &amp;isSystemID, &amp;status);
+        }
+        ASSERT(U_SUCCESS(status));
+        canonical = String(buffer.data(), canonicalLength);
+    } while (canonical.isNull());
+    uenum_close(timeZones);
+
+    // 3. If ianaTimeZone is &quot;Etc/UTC&quot; or &quot;Etc/GMT&quot;, then return &quot;UTC&quot;.
+    if (canonical == &quot;Etc/UTC&quot; || canonical == &quot;Etc/GMT&quot;)
+        canonical = ASCIILiteral(&quot;UTC&quot;);
+
+    // 4. Return ianaTimeZone.
+    return canonical;
+}
+
+static Vector&lt;String&gt; localeData(const String&amp; locale, size_t keyIndex)
+{
+    Vector&lt;String&gt; keyLocaleData;
+    switch (keyIndex) {
+    case indexOfExtensionKeyCa: {
+        UErrorCode status = U_ZERO_ERROR;
+        UEnumeration* calendars = ucal_getKeywordValuesForLocale(&quot;calendar&quot;, locale.utf8().data(), false, &amp;status);
+        ASSERT(U_SUCCESS(status));
+
+        status = U_ZERO_ERROR;
+        int32_t nameLength;
+        while (const char* availableName = uenum_next(calendars, &amp;nameLength, &amp;status)) {
+            ASSERT(U_SUCCESS(status));
+            status = U_ZERO_ERROR;
+            String calendar = String(availableName, nameLength);
+            keyLocaleData.append(calendar);
+            // Ensure aliases used in language tag are allowed.
+            if (calendar == &quot;gregorian&quot;)
+                keyLocaleData.append(ASCIILiteral(&quot;gregory&quot;));
+            else if (calendar == &quot;islamic-civil&quot;)
+                keyLocaleData.append(ASCIILiteral(&quot;islamicc&quot;));
+            else if (calendar == &quot;ethiopic-amete-alem&quot;)
+                keyLocaleData.append(ASCIILiteral(&quot;ethioaa&quot;));
+        }
+        uenum_close(calendars);
+        break;
+    }
+    case indexOfExtensionKeyNu:
+        keyLocaleData = getNumberingSystemsForLocale(locale);
+        break;
+    default:
+        ASSERT_NOT_REACHED();
+    }
+    return keyLocaleData;
+}
+
+static JSObject* toDateTimeOptions(ExecState&amp; exec, JSValue originalOptions, const DateTimeOptionRequired required, const DateTimeOptionDefaults defaults)
+{
+    // 12.1.1 ToDateTimeOptions abstract operation (ECMA-402 2.0)
+    VM&amp; vm = exec.vm();
+
+    // 1. If options is undefined, then let options be null, else let options be ToObject(options).
+    // 2. ReturnIfAbrupt(options).
+    // 3. Let options be ObjectCreate(options).
+    JSObject* options;
+    if (originalOptions.isUndefinedOrNull())
+        options = constructEmptyObject(&amp;exec, exec.lexicalGlobalObject()-&gt;nullPrototypeObjectStructure());
+    else {
+        JSObject* originalToObject = originalOptions.toObject(&amp;exec);
+        if (exec.hadException())
+            return nullptr;
+        options = constructEmptyObject(&amp;exec, originalToObject);
+    }
+
+    // 4. Let needDefaults be true.
+    bool needDefaults = true;
+
+    // 5. If required is &quot;date&quot; or &quot;any&quot;,
+    if (required == DateTimeOptionRequired::Date || required == DateTimeOptionRequired::Any) {
+        // a. For each of the property names &quot;weekday&quot;, &quot;year&quot;, &quot;month&quot;, &quot;day&quot;:
+        // i. Let prop be the property name.
+        // ii. Let value be Get(options, prop).
+        // iii. ReturnIfAbrupt(value).
+        // iv. If value is not undefined, then let needDefaults be false.
+        JSValue weekday = options-&gt;get(&amp;exec, vm.propertyNames-&gt;weekday);
+        if (exec.hadException())
+            return nullptr;
+        if (!weekday.isUndefined())
+            needDefaults = false;
+
+        JSValue year = options-&gt;get(&amp;exec, vm.propertyNames-&gt;year);
+        if (exec.hadException())
+            return nullptr;
+        if (!year.isUndefined())
+            needDefaults = false;
+
+        JSValue month = options-&gt;get(&amp;exec, vm.propertyNames-&gt;month);
+        if (exec.hadException())
+            return nullptr;
+        if (!month.isUndefined())
+            needDefaults = false;
+
+        JSValue day = options-&gt;get(&amp;exec, vm.propertyNames-&gt;day);
+        if (exec.hadException())
+            return nullptr;
+        if (!day.isUndefined())
+            needDefaults = false;
+    }
+
+    // 6. If required is &quot;time&quot; or &quot;any&quot;,
+    if (required == DateTimeOptionRequired::Time || required == DateTimeOptionRequired::Any) {
+        // a. For each of the property names &quot;hour&quot;, &quot;minute&quot;, &quot;second&quot;:
+        // i. Let prop be the property name.
+        // ii. Let value be Get(options, prop).
+        // iii. ReturnIfAbrupt(value).
+        // iv. If value is not undefined, then let needDefaults be false.
+        JSValue hour = options-&gt;get(&amp;exec, vm.propertyNames-&gt;hour);
+        if (exec.hadException())
+            return nullptr;
+        if (!hour.isUndefined())
+            needDefaults = false;
+
+        JSValue minute = options-&gt;get(&amp;exec, vm.propertyNames-&gt;minute);
+        if (exec.hadException())
+            return nullptr;
+        if (!minute.isUndefined())
+            needDefaults = false;
+
+        JSValue second = options-&gt;get(&amp;exec, vm.propertyNames-&gt;second);
+        if (exec.hadException())
+            return nullptr;
+        if (!second.isUndefined())
+            needDefaults = false;
+    }
+
+    // 7. If needDefaults is true and defaults is either &quot;date&quot; or &quot;all&quot;, then
+    if (needDefaults &amp;&amp; (defaults == DateTimeOptionDefaults::Date || defaults == DateTimeOptionDefaults::All)) {
+        // a. For each of the property names &quot;year&quot;, &quot;month&quot;, &quot;day&quot;:
+        // i. Let status be CreateDatePropertyOrThrow(options, prop, &quot;numeric&quot;).
+        // ii. ReturnIfAbrupt(status).
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;year, jsString(&amp;exec, &quot;numeric&quot;));
+        if (exec.hadException())
+            return nullptr;
+
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;month, jsString(&amp;exec, &quot;numeric&quot;));
+        if (exec.hadException())
+            return nullptr;
+
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;day, jsString(&amp;exec, &quot;numeric&quot;));
+        if (exec.hadException())
+            return nullptr;
+    }
+
+    // 8. If needDefaults is true and defaults is either &quot;time&quot; or &quot;all&quot;, then
+    if (needDefaults &amp;&amp; (defaults == DateTimeOptionDefaults::Time || defaults == DateTimeOptionDefaults::All)) {
+        // a. For each of the property names &quot;hour&quot;, &quot;minute&quot;, &quot;second&quot;:
+        // i. Let status be CreateDatePropertyOrThrow(options, prop, &quot;numeric&quot;).
+        // ii. ReturnIfAbrupt(status).
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;hour, jsString(&amp;exec, &quot;numeric&quot;));
+        if (exec.hadException())
+            return nullptr;
+
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;minute, jsString(&amp;exec, &quot;numeric&quot;));
+        if (exec.hadException())
+            return nullptr;
+
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;second, jsString(&amp;exec, &quot;numeric&quot;));
+        if (exec.hadException())
+            return nullptr;
+    }
+
+    // 9. Return options.
+    return options;
+}
+
+void IntlDateTimeFormat::setFormatsFromPattern(const StringView&amp; pattern)
+{
+    // Get all symbols from the pattern, and set format fields accordingly.
+    // http://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
+    unsigned length = pattern.length();
+    for (unsigned i = 0; i &lt; length; ++i) {
+        UChar currentCharacter = pattern[i];
+        if (!isASCIIAlpha(currentCharacter))
+            continue;
+
+        unsigned count = 1;
+        while (i + 1 &lt; length &amp;&amp; pattern[i + 1] == currentCharacter) {
+            ++count;
+            ++i;
+        }
+
+        if (currentCharacter == 'h' || currentCharacter == 'K')
+            m_hour12 = true;
+        else if (currentCharacter == 'H' || currentCharacter == 'k')
+            m_hour12 = false;
+
+        switch (currentCharacter) {
+        case 'G':
+            if (count &lt;= 3)
+                m_era = Era::Short;
+            else if (count == 4)
+                m_era = Era::Long;
+            else if (count == 5)
+                m_era = Era::Narrow;
+            break;
+        case 'y':
+            if (count == 1)
+                m_year = Year::Numeric;
+            else if (count == 2)
+                m_year = Year::TwoDigit;
+            break;
+        case 'M':
+        case 'L':
+            if (count == 1)
+                m_month = Month::Numeric;
+            else if (count == 2)
+                m_month = Month::TwoDigit;
+            else if (count == 3)
+                m_month = Month::Short;
+            else if (count == 4)
+                m_month = Month::Long;
+            else if (count == 5)
+                m_month = Month::Narrow;
+            break;
+        case 'E':
+        case 'e':
+        case 'c':
+            if (count &lt;= 3)
+                m_weekday = Weekday::Short;
+            else if (count == 4)
+                m_weekday = Weekday::Long;
+            else if (count == 5)
+                m_weekday = Weekday::Narrow;
+            break;
+        case 'd':
+            if (count == 1)
+                m_day = Day::Numeric;
+            else if (count == 2)
+                m_day = Day::TwoDigit;
+            break;
+        case 'h':
+        case 'H':
+        case 'k':
+        case 'K':
+            if (count == 1)
+                m_hour = Hour::Numeric;
+            else if (count == 2)
+                m_hour = Hour::TwoDigit;
+            break;
+        case 'm':
+            if (count == 1)
+                m_minute = Minute::Numeric;
+            else if (count == 2)
+                m_minute = Minute::TwoDigit;
+            break;
+        case 's':
+            if (count == 1)
+                m_second = Second::Numeric;
+            else if (count == 2)
+                m_second = Second::TwoDigit;
+            break;
+        case 'z':
+        case 'v':
+        case 'V':
+            if (count == 1)
+                m_timeZoneName = TimeZoneName::Short;
+            else if (count == 4)
+                m_timeZoneName = TimeZoneName::Long;
+            break;
+        }
+    }
+}
+
+void IntlDateTimeFormat::initializeDateTimeFormat(ExecState&amp; exec, JSValue locales, JSValue originalOptions)
+{
+    // 12.1.1 InitializeDateTimeFormat (dateTimeFormat, locales, options) (ECMA-402 2.0)
+    // 1. If dateTimeFormat.[[initializedIntlObject]] is true, throw a TypeError exception.
+    // 2. Set dateTimeFormat.[[initializedIntlObject]] to true.
+
+    // 3. Let requestedLocales be CanonicalizeLocaleList(locales).
+    Vector&lt;String&gt; requestedLocales = canonicalizeLocaleList(exec, locales);
+    // 4. ReturnIfAbrupt(requestedLocales),
+    if (exec.hadException())
+        return;
+
+    // 5. Let options be ToDateTimeOptions(options, &quot;any&quot;, &quot;date&quot;).
+    JSObject* options = toDateTimeOptions(exec, originalOptions, DateTimeOptionRequired::Any, DateTimeOptionDefaults::Date);
+    // 6. ReturnIfAbrupt(options).
+    if (exec.hadException())
+        return;
+
+    // 7. Let opt be a new Record.
+    HashMap&lt;String, String&gt; localeOpt;
+
+    // 8. Let matcher be GetOption(options, &quot;localeMatcher&quot;, &quot;string&quot;, «&quot;lookup&quot;, &quot;best fit&quot;», &quot;best fit&quot;).
+    VM&amp; vm = exec.vm();
+    String localeMatcher = intlStringOption(exec, options, vm.propertyNames-&gt;localeMatcher, { &quot;lookup&quot;, &quot;best fit&quot; }, &quot;localeMatcher must be either \&quot;lookup\&quot; or \&quot;best fit\&quot;&quot;, &quot;best fit&quot;);
+    // 9. ReturnIfAbrupt(matcher).
+    if (exec.hadException())
+        return;
+    // 10. Set opt.[[localeMatcher]] to matcher.
+    localeOpt.set(vm.propertyNames-&gt;localeMatcher.string(), localeMatcher);
+
+    // 11. Let localeData be the value of %DateTimeFormat%.[[localeData]].
+    // 12. Let r be ResolveLocale( %DateTimeFormat%.[[availableLocales]], requestedLocales, opt, %DateTimeFormat%.[[relevantExtensionKeys]], localeData).
+    const HashSet&lt;String&gt; availableLocales = exec.lexicalGlobalObject()-&gt;intlDateTimeFormatAvailableLocales();
+    HashMap&lt;String, String&gt; resolved = resolveLocale(availableLocales, requestedLocales, localeOpt, relevantExtensionKeys, WTF_ARRAY_LENGTH(relevantExtensionKeys), localeData);
+
+    // 13. Set dateTimeFormat.[[locale]] to the value of r.[[locale]].
+    m_locale = resolved.get(vm.propertyNames-&gt;locale.string());
+    // 14. Set dateTimeFormat.[[calendar]] to the value of r.[[ca]].
+    m_calendar = resolved.get(ASCIILiteral(&quot;ca&quot;));
+    // Switch to preferred aliases.
+    if (m_calendar == &quot;gregory&quot;)
+        m_calendar = ASCIILiteral(&quot;gregorian&quot;);
+    else if (m_calendar == &quot;islamicc&quot;)
+        m_calendar = ASCIILiteral(&quot;islamic-civil&quot;);
+    else if (m_calendar == &quot;ethioaa&quot;)
+        m_calendar = ASCIILiteral(&quot;ethiopic-amete-alem&quot;);
+    // 15. Set dateTimeFormat.[[numberingSystem]] to the value of r.[[nu]].
+    m_numberingSystem = resolved.get(ASCIILiteral(&quot;nu&quot;));
+    // 16. Let dataLocale be the value of r.[[dataLocale]].
+    String dataLocale = resolved.get(ASCIILiteral(&quot;dataLocale&quot;));
+
+    // 17. Let tz be Get(options, &quot;timeZone&quot;).
+    JSValue tzValue = options-&gt;get(&amp;exec, vm.propertyNames-&gt;timeZone);
+    // 18. ReturnIfAbrupt(tz).
+    if (exec.hadException())
+        return;
+
+    // 19. If tz is not undefined, then
+    String tz;
+    if (!tzValue.isUndefined()) {
+        // a. Let tz be ToString(tz).
+        String originalTz = tzValue.toWTFString(&amp;exec);
+        // b. ReturnIfAbrupt(tz).
+        if (exec.hadException())
+            return;
+        // c. If the result of IsValidTimeZoneName(tz) is false, then i. Throw a RangeError exception.
+        // d. Let tz be CanonicalizeTimeZoneName(tz).
+        tz = canonicalizeTimeZoneName(originalTz);
+        if (tz.isNull()) {
+            throwRangeError(&amp;exec, String::format(&quot;invalid time zone: %s&quot;, originalTz.utf8().data()));
+            return;
+        }
</ins><span class="cx">     } else {
</span><del>-        // 4. Else
-        // a. Let x be ToNumber(date).
-        value = date.toNumber(state);
-        // b. ReturnIfAbrupt(x).
-        if (state-&gt;hadException())
-            return JSValue::encode(jsUndefined());
</del><ins>+        // 20. Else,
+        // a. Let tz be DefaultTimeZone().
+        tz = defaultTimeZone();
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    // 5. Return FormatDateTime(dtf, x).
</del><ins>+    // 21. Set dateTimeFormat.[[timeZone]] to tz.
+    m_timeZone = tz;
</ins><span class="cx"> 
</span><ins>+    // 22. Let opt be a new Record.
+    // Rather than building a record, build the skeleton pattern.
+    StringBuilder skeletonBuilder;
+
+    // 23. For each row of Table 3, except the header row, do:
+    // a. Let prop be the name given in the Property column of the row.
+    // b. Let value be GetOption(options, prop, &quot;string&quot;, «the strings given in the Values column of the row», undefined).
+    // c. ReturnIfAbrupt(value).
+    // d. Set opt.[[&lt;prop&gt;]] to value.
+    auto narrowShortLong = { &quot;narrow&quot;, &quot;short&quot;, &quot;long&quot; };
+    auto twoDigitNumeric = { &quot;2-digit&quot;, &quot;numeric&quot; };
+    auto twoDigitNumericNarrowShortLong = { &quot;2-digit&quot;, &quot;numeric&quot;, &quot;narrow&quot;, &quot;short&quot;, &quot;long&quot; };
+    auto shortLong = { &quot;short&quot;, &quot;long&quot; };
+
+    String weekday = intlStringOption(exec, options, vm.propertyNames-&gt;weekday, narrowShortLong, &quot;weekday must be \&quot;narrow\&quot;, \&quot;short\&quot;, or \&quot;long\&quot;&quot;, nullptr);
+    if (exec.hadException())
+        return;
+    if (!weekday.isNull()) {
+        if (weekday == &quot;narrow&quot;)
+            skeletonBuilder.appendLiteral(&quot;EEEEE&quot;);
+        else if (weekday == &quot;short&quot;)
+            skeletonBuilder.appendLiteral(&quot;EEE&quot;);
+        else if (weekday == &quot;long&quot;)
+            skeletonBuilder.appendLiteral(&quot;EEEE&quot;);
+    }
+
+    String era = intlStringOption(exec, options, vm.propertyNames-&gt;era, narrowShortLong, &quot;era must be \&quot;narrow\&quot;, \&quot;short\&quot;, or \&quot;long\&quot;&quot;, nullptr);
+    if (exec.hadException())
+        return;
+    if (!era.isNull()) {
+        if (era == &quot;narrow&quot;)
+            skeletonBuilder.appendLiteral(&quot;GGGGG&quot;);
+        else if (era == &quot;short&quot;)
+            skeletonBuilder.appendLiteral(&quot;GGG&quot;);
+        else if (era == &quot;long&quot;)
+            skeletonBuilder.appendLiteral(&quot;GGGG&quot;);
+    }
+
+    String year = intlStringOption(exec, options, vm.propertyNames-&gt;year, twoDigitNumeric, &quot;year must be \&quot;2-digit\&quot; or \&quot;numeric\&quot;&quot;, nullptr);
+    if (exec.hadException())
+        return;
+    if (!year.isNull()) {
+        if (year == &quot;2-digit&quot;)
+            skeletonBuilder.appendLiteral(&quot;yy&quot;);
+        else if (year == &quot;numeric&quot;)
+            skeletonBuilder.append('y');
+    }
+
+    String month = intlStringOption(exec, options, vm.propertyNames-&gt;month, twoDigitNumericNarrowShortLong, &quot;month must be \&quot;2-digit\&quot;, \&quot;numeric\&quot;, \&quot;narrow\&quot;, \&quot;short\&quot;, or \&quot;long\&quot;&quot;, nullptr);
+    if (exec.hadException())
+        return;
+    if (!month.isNull()) {
+        if (month == &quot;2-digit&quot;)
+            skeletonBuilder.appendLiteral(&quot;MM&quot;);
+        else if (month == &quot;numeric&quot;)
+            skeletonBuilder.append('M');
+        else if (month == &quot;narrow&quot;)
+            skeletonBuilder.appendLiteral(&quot;MMMMM&quot;);
+        else if (month == &quot;short&quot;)
+            skeletonBuilder.appendLiteral(&quot;MMM&quot;);
+        else if (month == &quot;long&quot;)
+            skeletonBuilder.appendLiteral(&quot;MMMM&quot;);
+    }
+
+    String day = intlStringOption(exec, options, vm.propertyNames-&gt;day, twoDigitNumeric, &quot;day must be \&quot;2-digit\&quot; or \&quot;numeric\&quot;&quot;, nullptr);
+    if (exec.hadException())
+        return;
+    if (!day.isNull()) {
+        if (day == &quot;2-digit&quot;)
+            skeletonBuilder.appendLiteral(&quot;dd&quot;);
+        else if (day == &quot;numeric&quot;)
+            skeletonBuilder.append('d');
+    }
+
+    String hour = intlStringOption(exec, options, vm.propertyNames-&gt;hour, twoDigitNumeric, &quot;hour must be \&quot;2-digit\&quot; or \&quot;numeric\&quot;&quot;, nullptr);
+    if (exec.hadException())
+        return;
+
+    // We need hour12 to make the hour skeleton pattern decision, so do this early.
+    // 32. Let hr12 be GetOption(options, &quot;hour12&quot;, &quot;boolean&quot;, undefined, undefined).
+    bool isHour12Undefined = true;
+    bool hr12 = intlBooleanOption(exec, options, vm.propertyNames-&gt;hour12, isHour12Undefined);
+    // 33. ReturnIfAbrupt(hr12).
+    if (exec.hadException())
+        return;
+
+    if (!hour.isNull()) {
+        if (isHour12Undefined) {
+            if (hour == &quot;2-digit&quot;)
+                skeletonBuilder.appendLiteral(&quot;jj&quot;);
+            else if (hour == &quot;numeric&quot;)
+                skeletonBuilder.append('j');
+        } else if (hr12) {
+            if (hour == &quot;2-digit&quot;)
+                skeletonBuilder.appendLiteral(&quot;hh&quot;);
+            else if (hour == &quot;numeric&quot;)
+                skeletonBuilder.append('h');
+        } else {
+            if (hour == &quot;2-digit&quot;)
+                skeletonBuilder.appendLiteral(&quot;HH&quot;);
+            else if (hour == &quot;numeric&quot;)
+                skeletonBuilder.append('H');
+        }
+    }
+
+    String minute = intlStringOption(exec, options, vm.propertyNames-&gt;minute, twoDigitNumeric, &quot;minute must be \&quot;2-digit\&quot; or \&quot;numeric\&quot;&quot;, nullptr);
+    if (exec.hadException())
+        return;
+    if (!minute.isNull()) {
+        if (minute == &quot;2-digit&quot;)
+            skeletonBuilder.appendLiteral(&quot;mm&quot;);
+        else if (minute == &quot;numeric&quot;)
+            skeletonBuilder.append('m');
+    }
+
+    String second = intlStringOption(exec, options, vm.propertyNames-&gt;second, twoDigitNumeric, &quot;second must be \&quot;2-digit\&quot; or \&quot;numeric\&quot;&quot;, nullptr);
+    if (exec.hadException())
+        return;
+    if (!second.isNull()) {
+        if (second == &quot;2-digit&quot;)
+            skeletonBuilder.appendLiteral(&quot;ss&quot;);
+        else if (second == &quot;numeric&quot;)
+            skeletonBuilder.append('s');
+    }
+
+    String timeZoneName = intlStringOption(exec, options, vm.propertyNames-&gt;timeZoneName, shortLong, &quot;timeZoneName must be \&quot;short\&quot; or \&quot;long\&quot;&quot;, nullptr);
+    if (exec.hadException())
+        return;
+    if (!timeZoneName.isNull()) {
+        if (timeZoneName == &quot;short&quot;)
+            skeletonBuilder.append('z');
+        else if (timeZoneName == &quot;long&quot;)
+            skeletonBuilder.appendLiteral(&quot;zzzz&quot;);
+    }
+
+    // 24. Let dataLocaleData be Get(localeData, dataLocale).
+    // 25. Let formats be Get(dataLocaleData, &quot;formats&quot;).
+    // 26. Let matcher be GetOption(options, &quot;formatMatcher&quot;, &quot;string&quot;, «&quot;basic&quot;, &quot;best fit&quot;», &quot;best fit&quot;).
+    intlStringOption(exec, options, vm.propertyNames-&gt;formatMatcher, { &quot;basic&quot;, &quot;best fit&quot; }, &quot;formatMatcher must be either \&quot;basic\&quot; or \&quot;best fit\&quot;&quot;, &quot;best fit&quot;);
+    // 27. ReturnIfAbrupt(matcher).
+    if (exec.hadException())
+        return;
+
+    // Always use ICU date format generator, rather than our own pattern list and matcher.
+    // Covers steps 28-36.
+    UErrorCode status = U_ZERO_ERROR;
+    UDateTimePatternGenerator* generator = udatpg_open(dataLocale.utf8().data(), &amp;status);
+    if (U_FAILURE(status)) {
+        throwTypeError(&amp;exec, ASCIILiteral(&quot;failed to initialize DateTimeFormat&quot;));
+        return;
+    }
+
+    String skeleton = skeletonBuilder.toString();
+    StringView skeletonView(skeleton);
+    Vector&lt;UChar, 32&gt; patternBuffer(32);
+    status = U_ZERO_ERROR;
+    auto patternLength = udatpg_getBestPattern(generator, skeletonView.upconvertedCharacters(), skeletonView.length(), patternBuffer.data(), patternBuffer.capacity(), &amp;status);
+    if (status == U_BUFFER_OVERFLOW_ERROR) {
+        status = U_ZERO_ERROR;
+        patternBuffer = Vector&lt;UChar, 32&gt;(patternLength);
+        udatpg_getBestPattern(generator, skeletonView.upconvertedCharacters(), skeletonView.length(), patternBuffer.data(), patternLength, &amp;status);
+    }
+    udatpg_close(generator);
+    if (U_FAILURE(status)) {
+        throwTypeError(&amp;exec, ASCIILiteral(&quot;failed to initialize DateTimeFormat&quot;));
+        return;
+    }
+
+    StringView pattern(patternBuffer.data(), patternLength);
+    setFormatsFromPattern(pattern);
+
+    // 37. Set dateTimeFormat.[[boundFormat]] to undefined.
+    // Already undefined.
+
+    // 38. Set dateTimeFormat.[[initializedDateTimeFormat]] to true.
+    m_initializedDateTimeFormat = true;
+
+    // 39. Return dateTimeFormat.
+    return;
+}
+
+const char* IntlDateTimeFormat::weekdayString(Weekday weekday)
+{
+    switch (weekday) {
+    case Weekday::Narrow:
+        return ASCIILiteral(&quot;narrow&quot;);
+    case Weekday::Short:
+        return ASCIILiteral(&quot;short&quot;);
+    case Weekday::Long:
+        return ASCIILiteral(&quot;long&quot;);
+    case Weekday::None:
+        ASSERT_NOT_REACHED();
+        return nullptr;
+    }
+    ASSERT_NOT_REACHED();
+    return nullptr;
+}
+
+const char* IntlDateTimeFormat::eraString(Era era)
+{
+    switch (era) {
+    case Era::Narrow:
+        return &quot;narrow&quot;;
+    case Era::Short:
+        return &quot;short&quot;;
+    case Era::Long:
+        return &quot;long&quot;;
+    case Era::None:
+        ASSERT_NOT_REACHED();
+        return nullptr;
+    }
+    ASSERT_NOT_REACHED();
+    return nullptr;
+}
+
+const char* IntlDateTimeFormat::yearString(Year year)
+{
+    switch (year) {
+    case Year::TwoDigit:
+        return &quot;2-digit&quot;;
+    case Year::Numeric:
+        return &quot;numeric&quot;;
+    case Year::None:
+        ASSERT_NOT_REACHED();
+        return nullptr;
+    }
+    ASSERT_NOT_REACHED();
+    return nullptr;
+}
+
+const char* IntlDateTimeFormat::monthString(Month month)
+{
+    switch (month) {
+    case Month::TwoDigit:
+        return &quot;2-digit&quot;;
+    case Month::Numeric:
+        return &quot;numeric&quot;;
+    case Month::Narrow:
+        return &quot;narrow&quot;;
+    case Month::Short:
+        return &quot;short&quot;;
+    case Month::Long:
+        return &quot;long&quot;;
+    case Month::None:
+        ASSERT_NOT_REACHED();
+        return nullptr;
+    }
+    ASSERT_NOT_REACHED();
+    return nullptr;
+}
+
+const char* IntlDateTimeFormat::dayString(Day day)
+{
+    switch (day) {
+    case Day::TwoDigit:
+        return &quot;2-digit&quot;;
+    case Day::Numeric:
+        return &quot;numeric&quot;;
+    case Day::None:
+        ASSERT_NOT_REACHED();
+        return nullptr;
+    }
+    ASSERT_NOT_REACHED();
+    return nullptr;
+}
+
+const char* IntlDateTimeFormat::hourString(Hour hour)
+{
+    switch (hour) {
+    case Hour::TwoDigit:
+        return &quot;2-digit&quot;;
+    case Hour::Numeric:
+        return &quot;numeric&quot;;
+    case Hour::None:
+        ASSERT_NOT_REACHED();
+        return nullptr;
+    }
+    ASSERT_NOT_REACHED();
+    return nullptr;
+}
+
+const char* IntlDateTimeFormat::minuteString(Minute minute)
+{
+    switch (minute) {
+    case Minute::TwoDigit:
+        return &quot;2-digit&quot;;
+    case Minute::Numeric:
+        return &quot;numeric&quot;;
+    case Minute::None:
+        ASSERT_NOT_REACHED();
+        return nullptr;
+    }
+    ASSERT_NOT_REACHED();
+    return nullptr;
+}
+
+const char* IntlDateTimeFormat::secondString(Second second)
+{
+    switch (second) {
+    case Second::TwoDigit:
+        return &quot;2-digit&quot;;
+    case Second::Numeric:
+        return &quot;numeric&quot;;
+    case Second::None:
+        ASSERT_NOT_REACHED();
+        return nullptr;
+    }
+    ASSERT_NOT_REACHED();
+    return nullptr;
+}
+
+const char* IntlDateTimeFormat::timeZoneNameString(TimeZoneName timeZoneName)
+{
+    switch (timeZoneName) {
+    case TimeZoneName::Short:
+        return &quot;short&quot;;
+    case TimeZoneName::Long:
+        return &quot;long&quot;;
+    case TimeZoneName::None:
+        ASSERT_NOT_REACHED();
+        return nullptr;
+    }
+    ASSERT_NOT_REACHED();
+    return nullptr;
+}
+
+JSObject* IntlDateTimeFormat::resolvedOptions(ExecState&amp; exec)
+{
+    // 12.3.5 Intl.DateTimeFormat.prototype.resolvedOptions() (ECMA-402 2.0)
+    // The function returns a new object whose properties and attributes are set as if constructed by an object literal assigning to each of the following properties the value of the corresponding internal slot of this DateTimeFormat object (see 12.4): locale, calendar, numberingSystem, timeZone, hour12, weekday, era, year, month, day, hour, minute, second, and timeZoneName. Properties whose corresponding internal slots are not present are not assigned.
+    // Note: In this version of the ECMAScript 2015 Internationalization API, the timeZone property will be the name of the default time zone if no timeZone property was provided in the options object provided to the Intl.DateTimeFormat constructor. The previous version left the timeZone property undefined in this case.
+    if (!m_initializedDateTimeFormat) {
+        initializeDateTimeFormat(exec, jsUndefined(), jsUndefined());
+        ASSERT(!exec.hadException());
+    }
+
+    VM&amp; vm = exec.vm();
+    JSObject* options = constructEmptyObject(&amp;exec);
+    options-&gt;putDirect(vm, vm.propertyNames-&gt;locale, jsNontrivialString(&amp;exec, m_locale));
+    options-&gt;putDirect(vm, vm.propertyNames-&gt;calendar, jsNontrivialString(&amp;exec, m_calendar));
+    options-&gt;putDirect(vm, vm.propertyNames-&gt;numberingSystem, jsNontrivialString(&amp;exec, m_numberingSystem));
+    options-&gt;putDirect(vm, vm.propertyNames-&gt;timeZone, jsNontrivialString(&amp;exec, m_timeZone));
+
+    if (m_weekday != Weekday::None)
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;weekday, jsNontrivialString(&amp;exec, ASCIILiteral(weekdayString(m_weekday))));
+
+    if (m_era != Era::None)
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;era, jsNontrivialString(&amp;exec, ASCIILiteral(eraString(m_era))));
+
+    if (m_year != Year::None)
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;year, jsNontrivialString(&amp;exec, ASCIILiteral(yearString(m_year))));
+
+    if (m_month != Month::None)
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;month, jsNontrivialString(&amp;exec, ASCIILiteral(monthString(m_month))));
+
+    if (m_day != Day::None)
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;day, jsNontrivialString(&amp;exec, ASCIILiteral(dayString(m_day))));
+
+    if (m_hour != Hour::None) {
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;hour, jsNontrivialString(&amp;exec, ASCIILiteral(hourString(m_hour))));
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;hour12, jsBoolean(m_hour12));
+    }
+
+    if (m_minute != Minute::None)
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;minute, jsNontrivialString(&amp;exec, ASCIILiteral(minuteString(m_minute))));
+
+    if (m_second != Second::None)
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;second, jsNontrivialString(&amp;exec, ASCIILiteral(secondString(m_second))));
+
+    if (m_timeZoneName != TimeZoneName::None)
+        options-&gt;putDirect(vm, vm.propertyNames-&gt;timeZoneName, jsNontrivialString(&amp;exec, ASCIILiteral(timeZoneNameString(m_timeZoneName))));
+
+    return options;
+}
+
+JSValue IntlDateTimeFormat::format(ExecState&amp; exec, double value)
+{
</ins><span class="cx">     // 12.3.4 FormatDateTime abstract operation (ECMA-402 2.0)
</span><ins>+    if (!m_initializedDateTimeFormat) {
+        initializeDateTimeFormat(exec, jsUndefined(), jsUndefined());
+        ASSERT(!exec.hadException());
+    }
</ins><span class="cx"> 
</span><span class="cx">     // 1. If x is not a finite Number, then throw a RangeError exception.
</span><span class="cx">     if (!std::isfinite(value))
</span><del>-        return JSValue::encode(throwRangeError(state, ASCIILiteral(&quot;date value is not finite in DateTimeFormat.format()&quot;)));
</del><ins>+        return throwRangeError(&amp;exec, ASCIILiteral(&quot;date value is not finite in DateTimeFormat format()&quot;));
</ins><span class="cx"> 
</span><span class="cx">     // FIXME: implement 2 - 9
</span><span class="cx"> 
</span><span class="cx">     // Return new Date(value).toString() until properly implemented.
</span><del>-    VM&amp; vm = state-&gt;vm();
-    JSGlobalObject* globalObject = state-&gt;callee()-&gt;globalObject();
</del><ins>+    VM&amp; vm = exec.vm();
+    JSGlobalObject* globalObject = exec.callee()-&gt;globalObject();
</ins><span class="cx">     DateInstance* d = DateInstance::create(vm, globalObject-&gt;dateStructure(), value);
</span><del>-    return JSValue::encode(JSValue(d).toString(state));
</del><ins>+    return JSValue(d).toString(&amp;exec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeIntlDateTimeFormath"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.h (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.h        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.h        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -44,6 +44,10 @@
</span><span class="cx"> 
</span><span class="cx">     DECLARE_INFO;
</span><span class="cx"> 
</span><ins>+    void initializeDateTimeFormat(ExecState&amp;, JSValue locales, JSValue options);
+    JSValue format(ExecState&amp;, double value);
+    JSObject* resolvedOptions(ExecState&amp;);
+
</ins><span class="cx">     JSBoundFunction* boundFormat() const { return m_boundFormat.get(); }
</span><span class="cx">     void setBoundFormat(VM&amp;, JSBoundFunction*);
</span><span class="cx"> 
</span><span class="lines">@@ -53,10 +57,46 @@
</span><span class="cx">     static void destroy(JSCell*);
</span><span class="cx">     static void visitChildren(JSCell*, SlotVisitor&amp;);
</span><span class="cx"> 
</span><ins>+private:
+    enum class Weekday { None, Narrow, Short, Long };
+    enum class Era { None, Narrow, Short, Long };
+    enum class Year { None, TwoDigit, Numeric };
+    enum class Month { None, TwoDigit, Numeric, Narrow, Short, Long };
+    enum class Day { None, TwoDigit, Numeric };
+    enum class Hour { None, TwoDigit, Numeric };
+    enum class Minute { None, TwoDigit, Numeric };
+    enum class Second { None, TwoDigit, Numeric };
+    enum class TimeZoneName { None, Short, Long };
+
+    static const char* weekdayString(Weekday);
+    static const char* eraString(Era);
+    static const char* yearString(Year);
+    static const char* monthString(Month);
+    static const char* dayString(Day);
+    static const char* hourString(Hour);
+    static const char* minuteString(Minute);
+    static const char* secondString(Second);
+    static const char* timeZoneNameString(TimeZoneName);
+
+    bool m_initializedDateTimeFormat { false };
+    void setFormatsFromPattern(const StringView&amp;);
</ins><span class="cx">     WriteBarrier&lt;JSBoundFunction&gt; m_boundFormat;
</span><ins>+
+    String m_locale { ASCIILiteral(&quot;en&quot;) };
+    String m_calendar { ASCIILiteral(&quot;gregorian&quot;) };
+    String m_numberingSystem { ASCIILiteral(&quot;latn&quot;) };
+    String m_timeZone { ASCIILiteral(&quot;UTC&quot;) };
+    bool m_hour12 { true };
+    Weekday m_weekday { Weekday::None };
+    Era m_era { Era::None };
+    Year m_year { Year::None };
+    Month m_month { Month::None };
+    Day m_day { Day::None };
+    Hour m_hour { Hour::None };
+    Minute m_minute { Minute::None };
+    Second m_second { Second::None };
+    TimeZoneName m_timeZoneName { TimeZoneName::None };
</ins><span class="cx"> };
</span><del>-    
-EncodedJSValue JSC_HOST_CALL IntlDateTimeFormatFuncFormatDateTime(ExecState*);
</del><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeIntlDateTimeFormatConstructorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormatConstructor.cpp (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormatConstructor.cpp        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormatConstructor.cpp        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -104,8 +104,9 @@
</span><span class="cx">     ASSERT(dateTimeFormat);
</span><span class="cx"> 
</span><span class="cx">     // 4. Return InitializeDateTimeFormat(dateTimeFormat, locales, options).
</span><del>-    // FIXME: return JSValue::encode(InitializeDateTimeFormat(dateTimeFormat, locales, options));
-
</del><ins>+    JSValue locales = state-&gt;argument(0);
+    JSValue options = state-&gt;argument(1);
+    dateTimeFormat-&gt;initializeDateTimeFormat(*state, locales, options);
</ins><span class="cx">     return JSValue::encode(dateTimeFormat);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -123,8 +124,9 @@
</span><span class="cx">     ASSERT(dateTimeFormat);
</span><span class="cx"> 
</span><span class="cx">     // 4. Return InitializeDateTimeFormat(dateTimeFormat, locales, options).
</span><del>-    // FIXME: return JSValue::encode(InitializeDateTimeFormat(dateTimeFormat, locales, options));
-
</del><ins>+    JSValue locales = state-&gt;argument(0);
+    JSValue options = state-&gt;argument(1);
+    dateTimeFormat-&gt;initializeDateTimeFormat(*state, locales, options);
</ins><span class="cx">     return JSValue::encode(dateTimeFormat);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -161,7 +163,7 @@
</span><span class="cx">     // 3. Return SupportedLocales(availableLocales, requestedLocales, options).
</span><span class="cx">     return JSValue::encode(supportedLocales(*state, availableLocales, requestedLocales, state-&gt;argument(1)));
</span><span class="cx"> }
</span><del>-    
</del><ins>+
</ins><span class="cx"> void IntlDateTimeFormatConstructor::visitChildren(JSCell* cell, SlotVisitor&amp; visitor)
</span><span class="cx"> {
</span><span class="cx">     IntlDateTimeFormatConstructor* thisObject = jsCast&lt;IntlDateTimeFormatConstructor*&gt;(cell);
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeIntlDateTimeFormatPrototypecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormatPrototype.cpp (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormatPrototype.cpp        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormatPrototype.cpp        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -28,19 +28,18 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(INTL)
</span><span class="cx"> 
</span><ins>+#include &quot;DateConstructor.h&quot;
</ins><span class="cx"> #include &quot;Error.h&quot;
</span><span class="cx"> #include &quot;IntlDateTimeFormat.h&quot;
</span><ins>+#include &quot;IntlObject.h&quot;
</ins><span class="cx"> #include &quot;JSBoundFunction.h&quot;
</span><span class="cx"> #include &quot;JSCJSValueInlines.h&quot;
</span><span class="cx"> #include &quot;JSCellInlines.h&quot;
</span><span class="cx"> #include &quot;JSObject.h&quot;
</span><del>-#include &quot;ObjectConstructor.h&quot;
</del><span class="cx"> #include &quot;StructureInlines.h&quot;
</span><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><del>-STATIC_ASSERT_IS_TRIVIALLY_DESTRUCTIBLE(IntlDateTimeFormatPrototype);
-
</del><span class="cx"> static EncodedJSValue JSC_HOST_CALL IntlDateTimeFormatPrototypeGetterFormat(ExecState*);
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL IntlDateTimeFormatPrototypeFuncResolvedOptions(ExecState*);
</span><span class="cx"> 
</span><span class="lines">@@ -86,6 +85,33 @@
</span><span class="cx">     return getStaticFunctionSlot&lt;JSObject&gt;(state, dateTimeFormatPrototypeTable, jsCast&lt;IntlDateTimeFormatPrototype*&gt;(object), propertyName, slot);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+static EncodedJSValue JSC_HOST_CALL IntlDateTimeFormatFuncFormatDateTime(ExecState* state)
+{
+    // 12.3.4 DateTime Format Functions (ECMA-402 2.0)
+    // 1. Let dtf be the this value.
+    // 2. Assert: Type(dtf) is Object and dtf has an [[initializedDateTimeFormat]] internal slot whose value is true.
+    IntlDateTimeFormat* format = jsCast&lt;IntlDateTimeFormat*&gt;(state-&gt;thisValue());
+
+    JSValue date = state-&gt;argument(0);
+    double value;
+
+    // 3. If date is not provided or is undefined, then
+    if (date.isUndefined()) {
+        // a. Let x be %Date_now%().
+        value = JSValue::decode(dateNow(state)).toNumber(state);
+    } else {
+        // 4. Else
+        // a. Let x be ToNumber(date).
+        value = date.toNumber(state);
+        // b. ReturnIfAbrupt(x).
+        if (state-&gt;hadException())
+            return JSValue::encode(jsUndefined());
+    }
+
+    // 5. Return FormatDateTime(dtf, x).
+    return JSValue::encode(format-&gt;format(*state, value));
+}
+
</ins><span class="cx"> EncodedJSValue JSC_HOST_CALL IntlDateTimeFormatPrototypeGetterFormat(ExecState* state)
</span><span class="cx"> {
</span><span class="cx">     // 12.3.3 Intl.DateTimeFormat.prototype.format (ECMA-402 2.0)
</span><span class="lines">@@ -94,7 +120,7 @@
</span><span class="cx">     // 2. ReturnIfAbrupt(dtf).
</span><span class="cx">     if (!dtf)
</span><span class="cx">         return JSValue::encode(throwTypeError(state, ASCIILiteral(&quot;Intl.DateTimeFormat.prototype.format called on value that's not an object initialized as a DateTimeFormat&quot;)));
</span><del>-    
</del><ins>+
</ins><span class="cx">     JSBoundFunction* boundFormat = dtf-&gt;boundFormat();
</span><span class="cx">     // 3. If the [[boundFormat]] internal slot of this DateTimeFormat object is undefined,
</span><span class="cx">     if (!boundFormat) {
</span><span class="lines">@@ -106,7 +132,7 @@
</span><span class="cx">         JSArray* boundArgs = JSArray::tryCreateUninitialized(vm, globalObject-&gt;arrayStructureForIndexingTypeDuringAllocation(ArrayWithUndecided), 0);
</span><span class="cx">         if (!boundArgs)
</span><span class="cx">             return JSValue::encode(throwOutOfMemoryError(state));
</span><del>-        
</del><ins>+
</ins><span class="cx">         // c. Let bf be BoundFunctionCreate(F, «this value»).
</span><span class="cx">         boundFormat = JSBoundFunction::create(vm, globalObject, targetObject, dtf, boundArgs, 1, ASCIILiteral(&quot;format&quot;));
</span><span class="cx">         // d. Set dtf.[[boundFormat]] to bf.
</span><span class="lines">@@ -119,18 +145,11 @@
</span><span class="cx"> EncodedJSValue JSC_HOST_CALL IntlDateTimeFormatPrototypeFuncResolvedOptions(ExecState* state)
</span><span class="cx"> {
</span><span class="cx">     // 12.3.5 Intl.DateTimeFormat.prototype.resolvedOptions() (ECMA-402 2.0)
</span><del>-    IntlDateTimeFormat* dtf = jsDynamicCast&lt;IntlDateTimeFormat*&gt;(state-&gt;thisValue());
-    if (!dtf)
</del><ins>+    IntlDateTimeFormat* dateTimeFormat = jsDynamicCast&lt;IntlDateTimeFormat*&gt;(state-&gt;thisValue());
+    if (!dateTimeFormat)
</ins><span class="cx">         return JSValue::encode(throwTypeError(state, ASCIILiteral(&quot;Intl.DateTimeFormat.prototype.resolvedOptions called on value that's not an object initialized as a DateTimeFormat&quot;)));
</span><span class="cx"> 
</span><del>-    // The function returns a new object whose properties and attributes are set as if constructed by an object literal assigning to each of the following properties the value of the corresponding internal slot of this DateTimeFormat object (see 12.4): locale, calendar, numberingSystem, timeZone, hour12, weekday, era, year, month, day, hour, minute, second, and timeZoneName. Properties whose corresponding internal slots are not present are not assigned.
-    // Note: In this version of the ECMAScript 2015 Internationalization API, the timeZone property will be the name of the default time zone if no timeZone property was provided in the options object provided to the Intl.DateTimeFormat constructor. The previous version left the timeZone property undefined in this case.
-
-    JSObject* options = constructEmptyObject(state);
-
-    // FIXME: Populate object from internal slots.
-
-    return JSValue::encode(options);
</del><ins>+    return JSValue::encode(dateTimeFormat-&gt;resolvedOptions(*state));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeIntlObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/IntlObject.cpp (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/IntlObject.cpp        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/Source/JavaScriptCore/runtime/IntlObject.cpp        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -45,7 +45,9 @@
</span><span class="cx"> #include &quot;Lookup.h&quot;
</span><span class="cx"> #include &quot;ObjectPrototype.h&quot;
</span><span class="cx"> #include &lt;unicode/uloc.h&gt;
</span><ins>+#include &lt;unicode/unumsys.h&gt;
</ins><span class="cx"> #include &lt;wtf/Assertions.h&gt;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><span class="lines">@@ -751,6 +753,7 @@
</span><span class="cx">             size_t keyPos = extensionSubtags.find(key);
</span><span class="cx">             // ii. If keyPos != -1, then
</span><span class="cx">             if (keyPos != notFound) {
</span><ins>+                // FIXME: https://github.com/tc39/ecma402/issues/59
</ins><span class="cx">                 // 1. If keyPos + 1 &lt; extensionSubtagsLength and the length of the result of Get(extensionSubtags, ToString(keyPos +1)) is greater than 2, then
</span><span class="cx">                 if (keyPos + 1 &lt; extensionSubtags.size() &amp;&amp; extensionSubtags[keyPos + 1].length() &gt; 2) {
</span><span class="cx">                     const String&amp; requestedValue = extensionSubtags[keyPos + 1];
</span><span class="lines">@@ -921,6 +924,37 @@
</span><span class="cx">     return supportedLocales;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+Vector&lt;String&gt; getNumberingSystemsForLocale(const String&amp; locale)
+{
+    static NeverDestroyed&lt;Vector&lt;String&gt;&gt; cachedNumberingSystems;
+    Vector&lt;String&gt;&amp; availableNumberingSystems = cachedNumberingSystems.get();
+    if (availableNumberingSystems.isEmpty()) {
+        UErrorCode status(U_ZERO_ERROR);
+        UEnumeration* numberingSystemNames = unumsys_openAvailableNames(&amp;status);
+        ASSERT(U_SUCCESS(status));
+        status = U_ZERO_ERROR;
+
+        int32_t resultLength;
+        // Numbering system names are always ASCII, so use char[].
+        while (const char* result = uenum_next(numberingSystemNames, &amp;resultLength, &amp;status)) {
+            ASSERT(U_SUCCESS(status));
+            status = U_ZERO_ERROR;
+            availableNumberingSystems.append(String(result, resultLength));
+        }
+        uenum_close(numberingSystemNames);
+    }
+
+    UErrorCode status(U_ZERO_ERROR);
+    UNumberingSystem* defaultSystem = unumsys_open(locale.utf8().data(), &amp;status);
+    ASSERT(U_SUCCESS(status));
+    String defaultSystemName(unumsys_getName(defaultSystem));
+    unumsys_close(defaultSystem);
+
+    Vector&lt;String&gt; numberingSystems({ defaultSystemName });
+    numberingSystems.appendVector(availableNumberingSystems);
+    return numberingSystems;
+}
+
</ins><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(INTL)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeIntlObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/IntlObject.h (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/IntlObject.h        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/Source/JavaScriptCore/runtime/IntlObject.h        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -64,8 +64,9 @@
</span><span class="cx"> Vector&lt;String&gt; canonicalizeLocaleList(ExecState&amp;, JSValue locales);
</span><span class="cx"> HashMap&lt;String, String&gt; resolveLocale(const HashSet&lt;String&gt;&amp; availableLocales, const Vector&lt;String&gt;&amp; requestedLocales, const HashMap&lt;String, String&gt;&amp; options, const char* const relevantExtensionKeys[], size_t relevantExtensionKeyCount, Vector&lt;String&gt; (*localeData)(const String&amp;, size_t));
</span><span class="cx"> JSValue supportedLocales(ExecState&amp;, const HashSet&lt;String&gt;&amp; availableLocales, const Vector&lt;String&gt;&amp; requestedLocales, JSValue options);
</span><del>-String removeUnicodeLocaleExtension(const String&amp;);
-String bestAvailableLocale(const HashSet&lt;String&gt;&amp;, const String&amp;);
</del><ins>+String removeUnicodeLocaleExtension(const String&amp; locale);
+String bestAvailableLocale(const HashSet&lt;String&gt;&amp; availableLocales, const String&amp; requestedLocale);
+Vector&lt;String&gt; getNumberingSystemsForLocale(const String&amp; locale);
</ins><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourcecmakeOptionsWincmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/cmake/OptionsWin.cmake (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/cmake/OptionsWin.cmake        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/Source/cmake/OptionsWin.cmake        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -55,7 +55,6 @@
</span><span class="cx"> WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_MONTH PUBLIC OFF)
</span><span class="cx"> WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_TIME PUBLIC OFF)
</span><span class="cx"> WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_WEEK PUBLIC OFF)
</span><del>-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INTL PUBLIC ON)
</del><span class="cx"> WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_CSS_VENDOR_PREFIXES PUBLIC ON)
</span><span class="cx"> WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_NOTIFICATIONS PUBLIC OFF)
</span><span class="cx"> WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_VENDOR_PREFIXES PUBLIC OFF)
</span><span class="lines">@@ -163,11 +162,11 @@
</span><span class="cx"> 
</span><span class="cx">     # Turn off certain link features
</span><span class="cx">     add_compile_options(/Gy- /openmp- /GF-)
</span><del>-    
</del><ins>+
</ins><span class="cx">     if (${CMAKE_BUILD_TYPE} MATCHES &quot;Debug&quot;)
</span><span class="cx">         set(CMAKE_SHARED_LINKER_FLAGS &quot;${CMAKE_SHARED_LINKER_FLAGS} /OPT:NOREF /OPT:NOICF&quot;)
</span><span class="cx">         set(CMAKE_EXE_LINKER_FLAGS &quot;${CMAKE_EXE_LINKER_FLAGS} /OPT:NOREF /OPT:NOICF&quot;)
</span><del>-        
</del><ins>+
</ins><span class="cx">         # To debug linking time issues, uncomment the following three lines:
</span><span class="cx">         #add_compile_options(/Bv)
</span><span class="cx">         #set(CMAKE_SHARED_LINKER_FLAGS &quot;${CMAKE_SHARED_LINKER_FLAGS} /VERBOSE /VERBOSE:INCR /TIME&quot;)
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerWebKitTestRunnerxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj (194386 => 194387)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj        2015-12-23 10:04:44 UTC (rev 194386)
+++ trunk/Tools/WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj        2015-12-23 10:48:26 UTC (rev 194387)
</span><span class="lines">@@ -34,19 +34,19 @@
</span><span class="cx"> 
</span><span class="cx"> /* Begin PBXBuildFile section */
</span><span class="cx">                 0F5169CC1445222D00E0A9D7 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F5169CA1445222D00E0A9D7 /* WebKit.framework */; };
</span><del>-                0F622CE91BBB3A1A00838AD3 /* TestOptions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F622CE81BBB3A1A00838AD3 /* TestOptions.cpp */; settings = {ASSET_TAGS = (); }; };
</del><ins>+                0F622CE91BBB3A1A00838AD3 /* TestOptions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F622CE81BBB3A1A00838AD3 /* TestOptions.cpp */; };
</ins><span class="cx">                 0F73B5511BA78968004B3EF4 /* JSUIScriptController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F73B54F1BA78968004B3EF4 /* JSUIScriptController.cpp */; };
</span><span class="cx">                 0F73B5521BA78968004B3EF4 /* JSUIScriptController.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F73B5501BA78968004B3EF4 /* JSUIScriptController.h */; };
</span><span class="cx">                 0F73B55A1BA792FF004B3EF4 /* JSWrapper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC952C0C11F3B965003398B4 /* JSWrapper.cpp */; };
</span><span class="cx">                 0F73B55C1BA89042004B3EF4 /* UIScriptControllerIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F73B55B1BA89042004B3EF4 /* UIScriptControllerIOS.mm */; };
</span><del>-                0F87B6131BACAD82004EC572 /* UIScriptControllerMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F87B6111BACAD6F004EC572 /* UIScriptControllerMac.mm */; settings = {ASSET_TAGS = (); }; };
-                0F87B6171BACC4C0004EC572 /* TestRunnerWKWebView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F87B6151BACC4B9004EC572 /* TestRunnerWKWebView.mm */; settings = {ASSET_TAGS = (); }; };
-                0F87B6191BACC558004EC572 /* Launch.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0F87B6181BACC558004EC572 /* Launch.storyboard */; settings = {ASSET_TAGS = (); }; };
-                0F87B61E1BACDA93004EC572 /* UIScriptContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F87B61A1BACDA93004EC572 /* UIScriptContext.cpp */; settings = {ASSET_TAGS = (); }; };
-                0F87B6201BACDA93004EC572 /* UIScriptController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F87B61C1BACDA93004EC572 /* UIScriptController.cpp */; settings = {ASSET_TAGS = (); }; };
</del><ins>+                0F87B6131BACAD82004EC572 /* UIScriptControllerMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F87B6111BACAD6F004EC572 /* UIScriptControllerMac.mm */; };
+                0F87B6171BACC4C0004EC572 /* TestRunnerWKWebView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F87B6151BACC4B9004EC572 /* TestRunnerWKWebView.mm */; };
+                0F87B6191BACC558004EC572 /* Launch.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0F87B6181BACC558004EC572 /* Launch.storyboard */; };
+                0F87B61E1BACDA93004EC572 /* UIScriptContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F87B61A1BACDA93004EC572 /* UIScriptContext.cpp */; };
+                0F87B6201BACDA93004EC572 /* UIScriptController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0F87B61C1BACDA93004EC572 /* UIScriptController.cpp */; };
</ins><span class="cx">                 0FEB90A01905A834000FDBF3 /* InjectedBundlePageCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FEB909E1905A776000FDBF3 /* InjectedBundlePageCocoa.mm */; };
</span><span class="cx">                 0FEB90A51905C016000FDBF3 /* CrashReporterInfo.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FEB90A31905BC6A000FDBF3 /* CrashReporterInfo.mm */; };
</span><del>-                0FEBF85A1BB61DF20028722D /* HIDEventGenerator.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FEBF8591BB61DF20028722D /* HIDEventGenerator.mm */; settings = {ASSET_TAGS = (); }; };
</del><ins>+                0FEBF85A1BB61DF20028722D /* HIDEventGenerator.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FEBF8591BB61DF20028722D /* HIDEventGenerator.mm */; };
</ins><span class="cx">                 1CA211C91BCA107300B2101F /* FontWithFeatures.otf in Resources */ = {isa = PBXBuildFile; fileRef = 1CA211C71BCA107300B2101F /* FontWithFeatures.otf */; };
</span><span class="cx">                 1CA211CA1BCA107300B2101F /* FontWithFeatures.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1CA211C81BCA107300B2101F /* FontWithFeatures.ttf */; };
</span><span class="cx">                 29210EAE144CACB700835BB5 /* AccessibilityUIElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29210EA9144CACB200835BB5 /* AccessibilityUIElement.cpp */; };
</span><span class="lines">@@ -93,17 +93,17 @@
</span><span class="cx">                 65EB85A011EC67CC0034D300 /* ActivateFontsCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 65EB859F11EC67CC0034D300 /* ActivateFontsCocoa.mm */; };
</span><span class="cx">                 8034C6621487636400AC32E9 /* AccessibilityControllerMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8034C6611487636400AC32E9 /* AccessibilityControllerMac.mm */; };
</span><span class="cx">                 8097338A14874A5A008156D9 /* AccessibilityNotificationHandler.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8097338914874A5A008156D9 /* AccessibilityNotificationHandler.mm */; };
</span><del>-                A185103A1B9AE0DA00744AEB /* CrashReporterInfo.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FEB90A31905BC6A000FDBF3 /* CrashReporterInfo.mm */; settings = {ASSET_TAGS = (); }; };
-                A185103B1B9AE0E200744AEB /* TestControllerCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2DCE2CD11B84524500C7F832 /* TestControllerCocoa.mm */; settings = {ASSET_TAGS = (); }; };
-                A185103C1B9AE0FE00744AEB /* Options.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 841CC00D181185BF0042E9B6 /* Options.cpp */; settings = {ASSET_TAGS = (); }; };
-                A185103D1B9AE10600744AEB /* TestInvocationCG.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC9192041333E4F8003011DC /* TestInvocationCG.cpp */; settings = {ASSET_TAGS = (); }; };
-                A185103E1B9AE12200744AEB /* CyclicRedundancyCheck.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5322FB4113FDA0CD0041ABCC /* CyclicRedundancyCheck.cpp */; settings = {ASSET_TAGS = (); }; };
-                A185103F1B9AE12900744AEB /* GeolocationProviderMock.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26D758E5160BECDC00268472 /* GeolocationProviderMock.cpp */; settings = {ASSET_TAGS = (); }; };
-                A18510401B9AE13100744AEB /* PixelDumpSupport.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5322FB4413FDA0EA0041ABCC /* PixelDumpSupport.cpp */; settings = {ASSET_TAGS = (); }; };
-                A18510411B9AE13800744AEB /* TestController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC793430118F7F19005EA8E2 /* TestController.cpp */; settings = {ASSET_TAGS = (); }; };
-                A18510421B9AE13E00744AEB /* TestInvocation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCD7D2F711921278006DB7EE /* TestInvocation.cpp */; settings = {ASSET_TAGS = (); }; };
-                A18510431B9AE14500744AEB /* WebNotificationProvider.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3164C8EF15D1ADA100EF1FE0 /* WebNotificationProvider.cpp */; settings = {ASSET_TAGS = (); }; };
-                A18510441B9AE14A00744AEB /* WorkQueueManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4429FC5E1627089600F66D8B /* WorkQueueManager.cpp */; settings = {ASSET_TAGS = (); }; };
</del><ins>+                A185103A1B9AE0DA00744AEB /* CrashReporterInfo.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FEB90A31905BC6A000FDBF3 /* CrashReporterInfo.mm */; };
+                A185103B1B9AE0E200744AEB /* TestControllerCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2DCE2CD11B84524500C7F832 /* TestControllerCocoa.mm */; };
+                A185103C1B9AE0FE00744AEB /* Options.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 841CC00D181185BF0042E9B6 /* Options.cpp */; };
+                A185103D1B9AE10600744AEB /* TestInvocationCG.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC9192041333E4F8003011DC /* TestInvocationCG.cpp */; };
+                A185103E1B9AE12200744AEB /* CyclicRedundancyCheck.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5322FB4113FDA0CD0041ABCC /* CyclicRedundancyCheck.cpp */; };
+                A185103F1B9AE12900744AEB /* GeolocationProviderMock.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26D758E5160BECDC00268472 /* GeolocationProviderMock.cpp */; };
+                A18510401B9AE13100744AEB /* PixelDumpSupport.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5322FB4413FDA0EA0041ABCC /* PixelDumpSupport.cpp */; };
+                A18510411B9AE13800744AEB /* TestController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC793430118F7F19005EA8E2 /* TestController.cpp */; };
+                A18510421B9AE13E00744AEB /* TestInvocation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCD7D2F711921278006DB7EE /* TestInvocation.cpp */; };
+                A18510431B9AE14500744AEB /* WebNotificationProvider.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3164C8EF15D1ADA100EF1FE0 /* WebNotificationProvider.cpp */; };
+                A18510441B9AE14A00744AEB /* WorkQueueManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4429FC5E1627089600F66D8B /* WorkQueueManager.cpp */; };
</ins><span class="cx">                 A664BC7613A5F3A9009A7B25 /* libWebCoreTestSupport.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 41230E16138C78BF00BCCFCA /* libWebCoreTestSupport.dylib */; };
</span><span class="cx">                 BC14E4DB120E02D000826C0C /* GCController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC14E4D9120E02D000826C0C /* GCController.cpp */; };
</span><span class="cx">                 BC14E4EA120E03D800826C0C /* JSGCController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC14E4E8120E03D800826C0C /* JSGCController.cpp */; };
</span></span></pre>
</div>
</div>

</body>
</html>