v8/test/intl/date-format
Jungshik Shin 831bc23303 Intl.DateTimeFormat: throw RangeError for non-finite input
intl.js throws an exception when datetime-value to format is
Infinity or NaN, but there was a way to thwart the check.

Moreover, intl.js and runtime-intl.cc have unnecessary conversions
of 'Number->Date->Number'. I removed the unnecessary conversion
and made 'Number' be passed to %InternalDateFormat.  With this
streamlining, the work-around mentioned above does not work
anymore.

Add a check in runtime_intl.cc for Infinity/NaN and throw a
RangeError.

Add invalid-time test for invalid datetime-values passed to
Intl.DateTimeFormat.format().

Bug: chromium:774833
Test: intl/date-format/invalid-time.js
Cq-Include-Trybots: master.tryserver.v8:v8_linux_noi18n_rel_ng
Change-Id: Idc575e532a86ee110dc4bb945ae023d6516650ee
Reviewed-on: https://chromium-review.googlesource.com/724860
Commit-Queue: Jungshik Shin <jshin@chromium.org>
Reviewed-by: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48765}
2017-10-19 23:25:52 +00:00
..
calendar-with-multiple-type-subtags.js Support language tag extensions with multiple subtags for a key 2016-08-17 17:55:34 +00:00
date-format-to-parts.js [intl] Remove always-true --datetime-format-to-parts flag 2017-04-17 19:25:51 +00:00
default-locale.js Reenable tests that need to access the default timezone. 2013-08-01 19:43:06 +00:00
format-is-bound.js Import intl test suite from v8-i18n project 2013-07-10 10:49:04 +00:00
format-test.js [tests] Fix timezone dependence in an intl test 2017-07-12 12:23:22 +00:00
invalid-time.js Intl.DateTimeFormat: throw RangeError for non-finite input 2017-10-19 23:25:52 +00:00
property-override.js Import intl test suite from v8-i18n project 2013-07-10 10:49:04 +00:00
resolved-options-is-method.js Import intl test suite from v8-i18n project 2013-07-10 10:49:04 +00:00
resolved-options.js Enable some passing, disabled Intl tests 2015-12-12 01:33:52 +00:00
timezone-name.js Original review https://codereview.chromium.org/25855005. 2013-10-11 17:54:31 +00:00
timezone.js Enable some passing, disabled Intl tests 2015-12-12 01:33:52 +00:00
unmodified-options.js [intl] Avoid modifying options bag from constructor 2016-12-19 21:36:16 +00:00
wellformed-unsupported-locale.js Reenable tests that need to access the default timezone. 2013-08-01 19:43:06 +00:00