Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1618)

Unified Diff: src/js/macros.py

Issue 1545883003: Fix 'illegal access' in Date constructor edge case (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Change the JS side limit, not the C++ one Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-4640.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/macros.py
diff --git a/src/js/macros.py b/src/js/macros.py
index d92e2acc76677fce9b16bb27e7d608a9220668db..c1fe81b1b2218ba813482a17b181b9b6290cd502 100644
--- a/src/js/macros.py
+++ b/src/js/macros.py
@@ -191,7 +191,7 @@ macro NUMBER_OF_CAPTURES(array) = ((array)[0]);
# Limit according to ECMA 262 15.9.1.1
define MAX_TIME_MS = 8640000000000000;
# Limit which is MAX_TIME_MS + msPerMonth.
Camillo Bruni 2015/12/23 14:46:08 Please update the comment.
Dan Ehrenberg 2015/12/25 01:00:49 Following more investigation, I decided to keep th
-define MAX_TIME_BEFORE_UTC = 8640002592000000;
+define MAX_TIME_BEFORE_UTC = 8640000000000000;
Camillo Bruni 2015/12/23 14:46:08 DateCache::kMaxTimeBeforeUTCInMs is 8640000864000
Dan Ehrenberg 2015/12/25 01:00:49 Oops, you're right. But do you have a good idea fo
# Gets the value of a Date object. If arg is not a Date object
# a type error is thrown.
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-4640.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698