Skip to content

Commit eddfe97

Browse files
committed
[js] Decont when passing p6 objects to js land
1 parent 89a9121 commit eddfe97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vm/js/nqp-runtime/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ function argToJSWithCtx(ctx, obj) {
689689
} else if (obj instanceof NativeStrArg) {
690690
return obj.value;
691691
} else {
692-
return toJSWithCtx(ctx, obj);
692+
return toJSWithCtx(ctx, obj.$$decont(ctx));
693693
}
694694
}
695695

@@ -701,7 +701,7 @@ function returnValueToJSWithCtx(ctx, obj) {
701701
} else if (typeof obj === 'string') {
702702
return obj;
703703
} else {
704-
return toJSWithCtx(ctx, obj);
704+
return toJSWithCtx(ctx, obj.$$decont(obj));
705705
}
706706
}
707707

0 commit comments

Comments
 (0)