Kenji
unread,Jul 23, 2009, 6:22:29 AM7/23/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to v8-users
Hi,
The following code would crash.
I know a->x is a wrong syntax, but v8 should be able to handle
execution errors, right?
Am I missing something here? It's not throwing an exception or
returning an error code, but accessing null pointer in internal::Invoke
()
Handle<String> source = String::New("function A(){} var a = new A();
a->x = 0;");
Handle<Script> script = Script::Compile(source);
Handle<Value> result = script->Run();
Could anybody help?
Thanks,
Kenji