Skip to content

Commit

Permalink
Fix bug with toString when userInvocationTable passed
Browse files Browse the repository at this point in the history
Closes #156
  • Loading branch information
ruscoder committed May 25, 2024
1 parent 85c9ab8 commit 5794612
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fhirpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ function makeParam(ctx, parentData, type, param) {
}

function doInvoke(ctx, fnName, data, rawParams){
var invoc = ctx.userInvocationTable?.[fnName] ?? engine.invocationTable[fnName];
var invoc = Object.prototype.hasOwnProperty.call(ctx.userInvocationTable, fnName) ?
ctx.userInvocationTable[fnName] : engine.invocationTable[fnName];
var res;
if(invoc) {
if(!invoc.arity){
Expand Down

0 comments on commit 5794612

Please sign in to comment.