diff --git a/examples/browser/cql4browsers.js b/examples/browser/cql4browsers.js index 5ac7fdc3..d4a7efb8 100644 --- a/examples/browser/cql4browsers.js +++ b/examples/browser/cql4browsers.js @@ -6861,6 +6861,8 @@ class FunctionRef extends expression_1.Expression { if (fDefs.length === 0) { throw new Error('no function with matching signature could be found'); } + // Moved context creation below the functionDef checks because it's not needed if + // there are no matching function defs let child_ctx; if (this.library) { const libCtx = ctx.getLibraryContext(this.library); diff --git a/src/elm/reusable.ts b/src/elm/reusable.ts index 4de6c66c..2df40ff0 100644 --- a/src/elm/reusable.ts +++ b/src/elm/reusable.ts @@ -118,7 +118,7 @@ export class FunctionRef extends Expression { if (fDefs.length === 0) { throw new Error('no function with matching signature could be found'); } - // Moved context creation below the functionDef checks because it's not needed if + // Moved context creation below the functionDef checks because it's not needed if // there are no matching function defs let child_ctx; if (this.library) {