Skip to content

Commit

Permalink
only export fetch, Headers, Request, Response for browser
Browse files Browse the repository at this point in the history
To ensure parity with Fastboot polyfills, supported properties should only be used internally in github/fetch but not exported.
  • Loading branch information
xg-wang committed Oct 18, 2017
1 parent 45b5716 commit 492f9a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/browser-fetch.js.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
'Blob',
'URLSearchParams',
'Symbol',
'iterator',
'ArrayBuffer'
];
var polyfillProps = [
Expand Down Expand Up @@ -54,6 +53,10 @@
} else {
self['default'] = self.fetch;
}

supportProps.forEach(function(prop) {
delete self[prop];
});
});

define('fetch/ajax', ['exports'], function() {
Expand Down

0 comments on commit 492f9a4

Please sign in to comment.