On Fri, Jun 27, 2014 at 9:29 PM, Jane Chen <jxche...@gmail.com> wrote: > Ben, > > Say if my class is called ValueIterator, and "it" is an instance of it, if I > do: > >> Object.prototype.toString.call(it); > [object ValueIterator] >> it instanceof ValueIterator; > (shell):1: ReferenceError: ValueIterator is not defined > it instanceof ValueIterator; > ^ > ReferenceError: ValueIterator is not defined > at (shell):1:15
The error message suggests that you called FunctionTemplate::SetClassName() but haven't exposed the class on the global object. -- -- v8-users mailing list v8-users@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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.