Reviewers: rossberg,

Message:
PTAL

Description:
Fix date cache in strict mode.

BUG=v8:3220
LOG=N
TEST=mjsunit/regress/regress-3220.js

Please review this at https://codereview.chromium.org/201753002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+2, -3 lines):
  M src/date.js


Index: src/date.js
diff --git a/src/date.js b/src/date.js
index 5eece689c289b5980e71c350457765e0abb65dea..b7ecbeb397e91fbac5a1f6fc4ab27d212d7a0b69 100644
--- a/src/date.js
+++ b/src/date.js
@@ -763,9 +763,8 @@ function CheckDateCacheCurrent() {
   timezone_cache_timezone = UNDEFINED;

   // Reset the date cache:
-  cache = Date_cache;
-  cache.time = NAN;
-  cache.string = null;
+  Date_cache.time = NAN;
+  Date_cache.string = null;
 }




--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to