Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium

New issue 300 by [email protected]: DeleteHiddenProperty dies when  
called on an object that's never had any hidden values set
http://code.google.com/p/v8/issues/detail?id=300

Here is some code to reproduce the problem:


void v8_test() {
   v8::Persistent<v8::Context> context = v8::Context::New();
   v8::Context::Scope context_scope(context);

   v8::HandleScope handle_scope;

   v8::Local<v8::String> source =
     v8::String::New(
        "f = {};\n"
        "f;");

   v8::Handle<v8::Script> script = v8::Script::Compile(source);
   v8::Local<v8::Object> obj = script->Run()->ToObject();

   // Try deleting a non-existent property
   assert(!obj->Has(v8::String::New("missing")));
   assert(obj->Delete(v8::String::New("missing")));

   // Try deleting a non-existent hidden property
   // Note that this dies with "CHECK(object->IsJSObject()) failed"
   assert(obj->DeleteHiddenValue(v8::String::New("not_present")));

   context.Dispose();
}




--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to