Skip to content

Commit 7c0ec01

Browse files
authored
Merge pull request gorhill#30 from benvinegar/patch-2
Throw an actual Error object instead of a string
2 parents 0240a40 + e22ab0a commit 7c0ec01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/safari/vapi-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ else return wo.apply(this, arguments);\
639639
};\
640640
XMLHttpRequest.prototype.open = function(m, u) {\
641641
if ( block(u, "xmlhttprequest") ) {\
642-
throw "InvalidAccessError"; return;\
642+
throw new Error("InvalidAccessError"); return;\
643643
} else {\
644644
xo.apply(this, arguments); return;}\
645645
};';

0 commit comments

Comments
 (0)