Skip to content

Commit

Permalink
[js] Fix bug with nqp::clone
Browse files Browse the repository at this point in the history
Clone returns a different value everytime it's called.
  • Loading branch information
pmurias committed Apr 23, 2017
1 parent d2692f4 commit d8dddb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/Operations.nqp
Expand Up @@ -270,7 +270,7 @@ class QAST::OperationsJS {
Chunk.new($T_OBJ, $ret, [chain_part($node)]);
});

add_simple_op('clone', $T_OBJ, [$T_OBJ], :decont(0), :method_call);
add_simple_op('clone', $T_OBJ, [$T_OBJ], :decont(0), :method_call, :side_effects);

my sub static_hint($node) {
my int $hint := -1;
Expand Down

0 comments on commit d8dddb7

Please sign in to comment.