Skip to content

Commit

Permalink
[js] Make nqp::istype work on the result of nqp::hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Oct 14, 2015
1 parent b3a4cbf commit 25008c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/nqp-runtime/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ op.istype = function(obj, type) {
}

// HACK
if (typeof obj === 'number' || typeof obj === 'string' || obj instanceof Array) {
if (typeof obj === 'number' || typeof obj === 'string' || obj instanceof Array || obj instanceof Hash) {
return 0;
}

Expand Down

0 comments on commit 25008c3

Please sign in to comment.