Skip to content

Commit

Permalink
Use #163 undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Genevieve L'Esperance authored and dylanahsmith committed Sep 8, 2021
1 parent 79459a8 commit 8aadbe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion function.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (fn *Function) Call(args ...Valuer) (*Value, error) {
argptr = (*C.ValuePtr)(unsafe.Pointer(&cArgs[0]))
}
fn.ctx.register()
rtn := C.FunctionCall(fn.ptr, nil, C.int(len(args)), argptr)
rtn := C.FunctionCall(fn.ptr, fn.ctx.iso.undefined.ptr, C.int(len(args)), argptr)
fn.ctx.deregister()
return getValue(fn.ctx, rtn), getError(rtn)
}
Expand Down

0 comments on commit 8aadbe2

Please sign in to comment.