How can I tell if a name I'm putting on an ObjectTemplate will conflict 
with something built-in to javascript?

For example, I was trying to add "Map" to the global context object and 
only after getting the rather unhelpful error:

#

# Fatal error in ../src/objects.cc, line 5270

# Check failed: !it.IsFound().

#


did I realize there might be a problem and went hunting through JS docs to 
see if "Map" was already used.


So how do I find out if the name will cause an error when I create the 
context?  ObjectTemplate doesn't have a .Get() method, or even an Exists() 
method where I could try to test and see if the name is already in use. 
 I'd like to be able to check both ObjectTemplates and FunctionTemplates (I 
didn't realize "name" was reserved in functions til I ran into a similar 
error).


Thank you.


--Zac

-- 
-- 
v8-users mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to