Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pass ctx to to_s in nqp::lc and nqp::uc.
  • Loading branch information
pmurias committed Jul 26, 2014
1 parent 9228766 commit cd2f066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/js/nqp-runtime-core/runtime.js
Expand Up @@ -428,10 +428,10 @@ op.ord = function(ctx, str, index) {
op.ordfirst = op.ord;
op.ordat = op.ord;
op.lc = function(ctx, str) {
return str.to_s().toLowerCase();
return str.to_s(ctx).toLowerCase();
};
op.uc = function(ctx, str) {
return str.to_s().toUpperCase();
return str.to_s(ctx).toUpperCase();
};
op.cmp_i = function(ctx, a, b) {
if (a == b) {
Expand Down

0 comments on commit cd2f066

Please sign in to comment.