Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Commit 307bd07

Browse files
committed
pushing
1 parent bcbf8ba commit 307bd07

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

Diff for: master.js

+10
Original file line numberDiff line numberDiff line change
@@ -1344,6 +1344,16 @@ var whitey = {
13441344
'WorkerMessageEvent': 1
13451345
};
13461346

1347+
/**
1348+
* DOM specification doesn't define an enumerable `fetch` function object on the global object
1349+
* so we add the property here, and the following code will blacklist it.
1350+
* (`fetch` descends from `GlobalFetch`, and is thus present in worker code as well)
1351+
* Just in case someone runs the bot on some old browser where `fetch` is not defined anyways,
1352+
* this will have no effect.
1353+
* Reason for blacklisting fetch: well, same as XHR.
1354+
*/
1355+
global.fetch = undefined;
1356+
13471357
[ global, Object.getPrototypeOf(global) ].forEach(function ( obj ) {
13481358
Object.getOwnPropertyNames( obj ).forEach(function( prop ) {
13491359
if( whitey.hasOwnProperty(prop) ) {

0 commit comments

Comments
 (0)