Skip to content

Commit ae7aa0a

Browse files
authored
Merge pull request #328 from DavidPeicho/fix-contextSpy-over-patching
Fix spyContext wrongly hooking non-GL functions
2 parents 336e893 + 01a2597 commit ae7aa0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/spies/contextSpy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export class ContextSpy {
229229
}
230230

231231
try {
232-
const isFunction = typeof bindingContext[member] !== "number";
232+
const isFunction = typeof bindingContext[member] === "function";
233233
if (isFunction) {
234234
this.spyFunction(member, bindingContext);
235235
}

0 commit comments

Comments
 (0)