You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add JS::Object#apply method to call JS function without receiver
This method is similar to `JS::Object#call`, but it is used to call a
function that is not a method of an object.
```ruby
floor = JS.global[:Math][:floor]
floor.apply(3.14) # => 3
JS.global[:Promise].new do |resolve, reject|
resolve.apply(42)
end.await # => 42
```
0 commit comments