Skip to content

Commit

Permalink
[js] Implement nqp::where/nqp::objectid on boxed native ints
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Mar 25, 2018
1 parent 01954e6 commit 0904ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/nqp-runtime/core.js
Expand Up @@ -444,7 +444,7 @@ op.composetype = function(obj, reprinfo) {

let whereCounter = 0;
op.where = function(obj) {
if (obj._STable || obj instanceof CodeRef || obj === Null) { // HACK
if (obj._STable || obj instanceof CodeRef || obj === Null || obj instanceof NQPInt) { // HACK
if (!obj._WHERE) {
obj._WHERE = ++whereCounter;
}
Expand Down

0 comments on commit 0904ae9

Please sign in to comment.