Skip to content

Commit

Permalink
[js] Pass native str args correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Mar 3, 2018
1 parent 25c83ce commit 78f3578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/js/perl6-runtime/runtime.js
Expand Up @@ -345,7 +345,7 @@ module.exports.load = function(nqp, CodeRef, Capture, containerSpecs) {
if (thrower === Null) {
ctx.die(usage + ' is not in the dynamic scope of a dispatcher');
} else {
thrower.$$call(ctx, null, usage);
thrower.$$call(ctx, null, new nqp.NativeStrArg(usage));
}

};
Expand Down Expand Up @@ -440,7 +440,7 @@ module.exports.load = function(nqp, CodeRef, Capture, containerSpecs) {
if (thrower === null) {
ctx.die("Type check failed in assignment to '" + name + "'");
} else {
thrower.$$call(ctx, null, name, value, of);
thrower.$$call(ctx, null, new nqp.NativeStrArg(name), value, of);
}
}

Expand Down

0 comments on commit 78f3578

Please sign in to comment.