Re: [v8-users] When will v8::Object::Set return false?

2016-02-20 Thread Dean McNamee
There is something additional to mention here, because the bool Set() function has been deprecated in recent versions of V8, and replaced with Maybe. The header says: * If an API method returns a MaybeLocal<>, the API method can potentially fail * either because an exception is thrown, or

[v8-users] When will v8::Object::Set return false?

2016-02-19 Thread Jane Chen
I'm getting warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result] obj->Set(isolate->GetCurrentContext(), ^~~~ ~ Presumably I should get the return result of Object::Set. But what shall I do if it