Skip to content

Commit 10dc2d8

Browse files
committed
[js] Fix lexical_handler_not_found
1 parent 589a3dd commit 10dc2d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vm/js/nqp-runtime/ctx.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ var exceptionsStack = require('./exceptions-stack.js');
66

77
var BOOT = require('./BOOT.js');
88

9+
const NQPInt = require('./nqp-int.js');
10+
911
const stackTrace = require('stack-trace');
1012

1113
const NEXT = 4;
@@ -245,7 +247,7 @@ class Ctx extends NQPObject {
245247
ctx = ctx.$$outer;
246248
}
247249

248-
this.$$getHLL().get('lexical_handler_not_found_error').$$call(this, null, category, 0);
250+
this.$$getHLL().get('lexical_handler_not_found_error').$$call(this, null, new NQPInt(category), new NQPInt(0));
249251
}
250252

251253
lookupDynamic(name) {

0 commit comments

Comments
 (0)