Skip to content
This repository has been archived by the owner on Dec 9, 2017. It is now read-only.

XMLHttpRequest is not a function under JavaScriptCore / Safari #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/js/analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ if (typeof J$ === 'undefined') J$ = {};

var arr = getSymbolicFunctionToInvokeAndLog(f_c, isConstructor);
tmpIsInstrumentedCaller = isInstrumentedCaller;
ic = isInstrumentedCaller = f_c === undefined || HOP(f_c, SPECIAL_PROP2) || typeof f_c !== "function";
ic = isInstrumentedCaller = f_c === undefined || HOP(f_c, SPECIAL_PROP2) || (typeof f_c !== "function" && !(isBrowser && f_c === XMLHttpRequest));

if (mode === MODE_RECORD || mode === MODE_NO_RR) {
invoke = true;
Expand Down Expand Up @@ -1146,6 +1146,8 @@ if (typeof J$ === 'undefined') J$ = {};
typen = T_NULL;
} else if (Array.isArray(val)) {
typen = T_ARRAY;
} else if (isBrowser && val === XMLHttpRequest) {
typen = T_FUNCTION;
} else {
typen = T_OBJECT;
}
Expand Down