rubyjs / therubyracer

Embed the V8 Javascript Interpreter into Ruby
1.66k stars 191 forks source link

Add support for `Object.Has()` #354

Closed cowboyd closed 9 years ago

cowboyd commented 9 years ago

Note: This was originally opened as https://github.com/stormbreakerbg/therubyracer/pull/5

The old method that did not take a context was deprecated, so we implemented it with this one.

However it returns a Maybe. We weren't sure what to return in the cause of IsNothing() returning true. So we return nil, but maybe we want to throw an exception?

cowboyd commented 9 years ago

This is superceded by #377