Skip to content

Commit ed42c96

Browse files
Fix the bug in JS::Object.wrap
1 parent 1bb1813 commit ed42c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gems/js/ext/js/js-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ static VALUE _rb_js_import_from_js(VALUE obj) {
439439
*/
440440
static VALUE _rb_js_obj_wrap(VALUE obj, VALUE wrapping) {
441441
#if JS_ENABLE_COMPONENT_MODEL
442-
rb_abi_stage_rb_value_to_js(obj);
442+
rb_abi_stage_rb_value_to_js(wrapping);
443443
return jsvalue_s_new(rb_js_abi_host_rb_object_to_js_rb_value());
444444
#else
445445
rb_abi_lend_object(wrapping);

0 commit comments

Comments
 (0)