Skip to content

Commit

Permalink
made the type of unavailableOnNode explicit since it can no longer be…
Browse files Browse the repository at this point in the history
… inferred
  • Loading branch information
arthertz authored and arjunguha committed Oct 21, 2021
1 parent b4c8b64 commit 018d3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stopify-continuations-compiler/src/common/cannotCapture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function cannotCapture(node: t.CallExpression | t.NewExpression): boolean {
return knowns.includes(node.callee.name);
}

const unavailableOnNode = [ ];
const unavailableOnNode : String[] = [ ];
const knownBuiltIns = knowns.filter(x => !unavailableOnNode.includes(x))
.map(o => eval(o));

Expand Down

0 comments on commit 018d3b0

Please sign in to comment.