On Thu 21 Aug 2014 08:21, Yutaka Hirano <[email protected]> writes:

> Andy, with your CL (https://codereview.chromium.org/459413002/) we can
> use Symbols as property keys.
> I thought the following code worked, but doesn't.
>
> v8::Local<v8::FunctionTemplate> foo = v8::FunctionTemplate::New
> (isolate);
> v8::Local<v8::Name> name = v8::Symbol::New(isolate);
> foo->PrototypeTemplate()->Set(name, v8::FunctionTemplate::New(isolate));
> v8::Local<v8::Object> new_instance = foo->InstanceTemplate
> ()->NewInstance();
> CHECK(!new_instance.IsEmpty());
> CHECK(new_instance->Has(name));
>
> The code fails because new_instance is empty. Am I missing something?

No, I think you have found a bug.  Thanks for the report, will fix!

Andy

-- 
-- 
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