Hi,
I've modified the samples/shell.cc example script, inserting the
following indented code in the main function (after line 63):
// Enter the newly created execution environment.
v8::Context::Scope context_scope(context);
v8::Handle<v8::ObjectTemplate> point_templ =
v8::ObjectTemplate::New();
point_templ->SetInternalFieldCount(1);
v8::Local<v8::Object> obj = point_templ->NewInstance();
obj->SetInternalField(0, v8::External::New(NULL));
bool run_shell = (argc == 1);
This code is the same as the one from the embedding guide illustrating
the use of SetInternalField. When running the example, I got the
following error:
---
#
# Fatal error in v8::Object::SetInternalField()
# Writing internal field out of bounds
#
Abort
---
Any idea why this happens ?
-- Sébastien
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---