Skip to content

Commit 8ed28ff

Browse files
committed
[js] Implement nqp::hllboxtype_i, nqp::hllboxtype_n, nqp::hllboxtype_s
1 parent 558b39c commit 8ed28ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vm/js/Operations.nqp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,10 @@ class QAST::OperationsJS {
16541654
add_simple_op('box_s', $T_OBJ, [$T_STR, $T_OBJ]);
16551655
add_simple_op('unbox_s', $T_STR, [$T_OBJ], :decont(0));
16561656

1657+
add_simple_op('hllboxtype_i', $T_OBJ, [], sub () {'HLL.get("int_box")'});
1658+
add_simple_op('hllboxtype_n', $T_OBJ, [], sub () {'HLL.get("num_box")'});
1659+
add_simple_op('hllboxtype_s', $T_OBJ, [], sub () {'HLL.get("str_box")'});
1660+
16571661
add_simple_op('setdebugtypename', $T_OBJ, [$T_OBJ, $T_STR], :side_effects);
16581662

16591663
add_simple_op('iseq_I', $T_INT, [$T_OBJ, $T_OBJ]);

0 commit comments

Comments
 (0)