File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,10 @@ HTTPSnippet.prototype.prepare = function (request) {
118118 //
119119 // Since the native FormData object is iterable, we easily detect what version of `form-data` we're working
120120 // with here to allow `multipart/form-data` requests to be compiled under both browser and Node environments.
121- // This hack sucks yeah, but it's the only way we can use this library in the browser as if we code this against
122- // just the native FormData object, we can't polyfill it back into Node because Blob and File objects, which
123- // something like `formdata-polyfill` requires, don't exist there.
121+ //
122+ // This hack is pretty awful but it's the only way we can use this library in the browser as if we code this
123+ // against just the native FormData object, we can't polyfill that back into Node because Blob and File objects,
124+ // which something like `formdata-polyfill` requires, don't exist there.
124125 const isNativeFormData = ( typeof form [ Symbol . iterator ] === 'function' ) ;
125126
126127 // easter egg
You can’t perform that action at this time.
0 commit comments