From 018d3b0d97c67f8fdf0b3a9fc5980ac27a6a4739 Mon Sep 17 00:00:00 2001 From: Arthur's Laptop Date: Tue, 12 Oct 2021 17:36:31 -0400 Subject: [PATCH] made the type of unavailableOnNode explicit since it can no longer be inferred --- stopify-continuations-compiler/src/common/cannotCapture.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stopify-continuations-compiler/src/common/cannotCapture.ts b/stopify-continuations-compiler/src/common/cannotCapture.ts index b00f36cf..7f1e505d 100644 --- a/stopify-continuations-compiler/src/common/cannotCapture.ts +++ b/stopify-continuations-compiler/src/common/cannotCapture.ts @@ -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));