Date.toString: ReferenceError: cache is not defined

222 views
Skip to first unread message

Albert Zeyer

unread,
Mar 14, 2014, 1:12:58 PM3/14/14
to v8-u...@googlegroups.com
Hi,

I tried to use the --use_strict flag in V8. In some code where I call String(someDateObj), I get this error:

ReferenceError: cache is not defined
    at Date.toString (native)
    at String (native)
    ... (my own code)

That cache reference is definitely not in my own code.

Is this a bug in V8? That is V8 3.25.8.

Thanks,
Albert

Andreas Rossberg

unread,
Mar 14, 2014, 3:03:03 PM3/14/14
to v8-u...@googlegroups.com
Sounds like it. Can you provide a minimal example of code that would
trigger the error?

Thanks,
/Andreas

Albert Zeyer

unread,
Mar 14, 2014, 5:45:53 PM3/14/14
to v8-u...@googlegroups.com
String(new Date());

However, using "use strict"; doesn't trigger the exception, only the V8 flag --use_strict does.
 

Erik Arvidsson

unread,
Mar 14, 2014, 6:12:15 PM3/14/14
to v8-u...@googlegroups.com, Søren Gjesse
Søren, this was introduced in r6067.


On line 766 cache is assigned but there is no variable binding for cache.


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



--
erik


Andreas Rossberg

unread,
Mar 17, 2014, 6:18:54 AM3/17/14
to v8-u...@googlegroups.com, Søren Gjesse

Ulan Degenbaev

unread,
Mar 17, 2014, 11:50:38 AM3/17/14
to v8-u...@googlegroups.com, Søren Gjesse
Fixed in r20006
Reply all
Reply to author
Forward
0 new messages