Skip to content

Commit

Permalink
[js] Fix nqp::istype
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Mar 25, 2018
1 parent a62cef7 commit 27b2525
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vm/js/nqp-runtime/sixmodel.js
Expand Up @@ -109,9 +109,7 @@ class STable {
}

const typeCheckResult = HOW.type_check(ctx, null, HOW, this, type);
return (typeof typeCheckResult === 'number' ? typeCheckResult : typeCheckResult.$$toBool(ctx));

if (HOW.type_check(ctx, null, HOW, this, type).$$toBool(ctx)) {
if (typeof typeCheckResult === 'number' ? typeCheckResult : typeCheckResult.$$toBool(ctx)) {
return 1;
}
}
Expand Down

0 comments on commit 27b2525

Please sign in to comment.