DescriptionFix 'illegal access' in Date constructor edge case
In a rare edge case, a difference in checks between C++ and
JavaScript lead to an 'illegal access' being thrown by the Date
constructor. This patch harmonizes the checks from both sides.
It's possible that slightly larger dates could be permitted,
as the ECMAScript 2015 specification indicates that +287396-10-12
would be a permissible date in the note in
http://tc39.github.io/ecma262/#sec-extended-years
This patch does not revisit the limit, only clears up the
inconsistency.
BUG=v8:4640
R=cbruni
LOG=Y
Committed: https://crrev.com/a9c791009b747b9f518e3801d665ca8c5969b1d1
Cr-Commit-Position: refs/heads/master@{#33068}
Patch Set 1 #Patch Set 2 : Change the JS side limit, not the C++ one #
Total comments: 4
Patch Set 3 : New strategy: Tighten up parser #Patch Set 4 : Switch back to the original JS limit, which is now vindicated, with additional tests #Messages
Total messages: 20 (9 generated)
|