We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
JS::Object.wrap
1 parent b84aac4 commit 2ef290bCopy full SHA for 2ef290b
ext/js/js-core.c
@@ -519,7 +519,7 @@ static VALUE _rb_js_proc_to_js(VALUE obj) {
519
* JS
520
* # Non JS::Object args are automatically converted to JS::Object by `to_js`.
521
* js_obj[:method1].call("Hello", 5) # => 10
522
- * js_obj[:method2].call(JS.wrap("Hello, Ruby"))
+ * js_obj[:method2].call(JS::Object.wrap("Hello, Ruby"))
523
* # => "HELLO, RUBY" (JS::Object)
524
*/
525
0 commit comments