[v8-users] Re: Customize [[Class]] internal property?

2013-10-15 Thread ChaRles Lew
Thanks, this works fine for normal objects. However this doesn't work on the global object case. Any ideas how should i make the global proxy object retrieve the [[Class]] property from the given ObjectTemplate? (or should i make a feature request?) e.g. make this.toString() = [object

[v8-users] Re: Customize [[Class]] internal property?

2013-10-14 Thread ioannis
If you are using the API to build your object then you can try the following: LocalFunctionTemplate func_templ(FunctionTemplate::New());func_templ-SetClassName(String::NewSymbol(ClassName));LocalObjectTemplate obj_templ = func_templ-InstanceTemplate(); On Friday, October 11, 2013 5:04:36