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.
1 parent 23757ac commit 33f18fcCopy full SHA for 33f18fc
src/vm/js/nqp-runtime/core.js
@@ -713,6 +713,14 @@ function toJSWithCtx(ctx, obj) {
713
return obj.$$getNum();
714
} else if (HLL.get('js_box') && obj.$$istype(ctx, HLL.get('js_box'))) {
715
return obj.$$jsObject;
716
+ } else if (obj === HLL.get('true_value')) {
717
+ return true;
718
+ } else if (obj === HLL.get('false_value')) {
719
+ return false;
720
+ } else if (obj === HLL.get('null_value')) {
721
+ return null;
722
+ } else if (obj.$$getBignum) {
723
+ return BigInt(obj.$$getBignum().toString());
724
} else if (op.isinvokable(obj)) {
725
return function() {
726
const converted = [null, {}];
0 commit comments