Skip to content

Commit

Permalink
[js] Make nqp::throwpayloadlexcaller skip compiler stubs correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Jan 11, 2017
1 parent ef6d29b commit 7e96e4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vm/js/nqp-runtime/ctx.js
Expand Up @@ -127,9 +127,8 @@ class Ctx extends NQPObject {

throwpayloadlexcaller(category, payload) {
let ctx = this.$$caller;

let isThunkOrCompilerStub = code => {code.isThunk || code.isCompilerStub};
while (ctx && isThunkOrCompilerStub(ctx.codeRef().staticCode)) {
let isThunkOrCompilerStub = code => {return(code.staticCode.isThunk || code.isCompilerStub)};
while (ctx && isThunkOrCompilerStub(ctx.codeRef())) {
ctx = ctx.$$caller;
}

Expand Down

0 comments on commit 7e96e4e

Please sign in to comment.