v8/test/intl
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
..
break-iterator Store i18n meta data in hidden symbols instead of js accessible properties 2014-04-01 10:56:16 +00:00
collator Store i18n meta data in hidden symbols instead of js accessible properties 2014-04-01 10:56:16 +00:00
date-format Intl.DateTimeFormat: throw RangeError for non-finite input 2017-10-19 23:25:52 +00:00
general Correct the misuse of uloc_{to,from}LanguageTag 2017-10-12 06:33:35 +00:00
number-format NumberFormat: default mnsd value is 1 2017-02-14 17:12:49 +00:00
overrides Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
string Ensure String.prototype.normalize.length is 0 2015-08-05 15:13:45 +00:00
assert.js [intl] Add new semantics + compat fallback to Intl constructor 2016-12-23 14:32:16 +00:00
bad-target.js [intl] Remove redundant type checking system 2017-01-09 22:24:57 +00:00
intl.gyp [gn] Move build to gypfiles 2016-04-29 10:11:11 +00:00
intl.isolate Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
intl.status resolvedTimezone for Etc/UTC should be UTC per Ecma 402 2017-05-04 21:17:39 +00:00
not-constructors.js [intl] Remove new.target check in Intl functions and method 2016-12-20 16:06:19 +00:00
OWNERS Add COMPONENT tags to OWNERS files where appropriate 2017-05-22 10:15:28 +00:00
regexp-assert.js [regexp, intl] Intl should not cause side effects to the RegExp object. 2016-03-29 11:57:03 +00:00
regexp-prepare.js [regexp, intl] Intl should not cause side effects to the RegExp object. 2016-03-29 11:57:03 +00:00
regress-4870.js Use stricter type checks in Intl's bound methods 2016-05-18 14:57:58 +00:00
regress-5179.js Avoid calling the builtin String.prototype.split in Intl 2016-07-08 16:53:09 +00:00
testcfg.py Use ICU case conversion/transliterator for case conversion 2016-05-11 19:03:04 +00:00
toStringTag.js [intl] Create the Intl constructors to C++ 2016-12-27 17:10:00 +00:00
utils.js Import intl test suite from v8-i18n project 2013-07-10 10:49:04 +00:00