Skip to content

Commit 3598599

Browse files
committed
[js] Support using P6num and P6str as REPRs in nqp-js-on-js.
1 parent 1e4a73a commit 3598599

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,11 @@ P6num.prototype.boxed_primitive = 2;
543543

544544
P6num.prototype.allocate = basic_allocate;
545545
P6num.prototype.basic_constructor = basic_constructor;
546+
P6num.prototype.type_object_for = basic_type_object_for;
547+
548+
// TODO: handle float/bits stuff
549+
P6num.prototype.compose = noop_compose;
550+
546551
P6num.prototype.create_obj_constructor = function(STable) {
547552
var c = this.basic_constructor(STable);
548553

@@ -572,8 +577,10 @@ function P6str() {
572577

573578
P6str.prototype.boxed_primitive = 3;
574579

580+
P6str.prototype.type_object_for = basic_type_object_for;
575581
P6str.prototype.allocate = basic_allocate;
576582
P6str.prototype.basic_constructor = basic_constructor;
583+
P6str.prototype.compose = noop_compose;
577584
P6str.prototype.create_obj_constructor = function(STable) {
578585
var c = this.basic_constructor(STable);
579586

0 commit comments

Comments
 (0)