@@ -14,7 +14,7 @@ describe('isomorphic-unfetch', () => {
1414 exports : { } ,
1515 require : ( ) => unfetch
1616 } ;
17- sandbox . global = sandbox . window ;
17+ sandbox . global = sandbox . self = sandbox . window ;
1818 sandbox . module = { exports : sandbox . exports } ;
1919 let filename = require . resolve ( '../packages/isomorphic-unfetch/browser' ) ;
2020 vm . runInNewContext ( fs . readFileSync ( filename ) , sandbox , filename ) ;
@@ -31,7 +31,7 @@ describe('isomorphic-unfetch', () => {
3131 exports : { } ,
3232 require : ( ) => unfetch
3333 } ;
34- sandbox . global = sandbox . window ;
34+ sandbox . global = sandbox . self = sandbox . window ;
3535 sandbox . module = { exports : sandbox . exports } ;
3636 let filename = require . resolve ( '../packages/isomorphic-unfetch/browser' ) ;
3737 vm . runInNewContext ( fs . readFileSync ( filename ) , sandbox , filename ) ;
@@ -52,7 +52,7 @@ describe('isomorphic-unfetch', () => {
5252 exports : { } ,
5353 require : ( ) => unfetch
5454 } ;
55- sandbox . global = sandbox . window ;
55+ sandbox . global = sandbox . self = sandbox . window ;
5656 sandbox . module = { exports : sandbox . exports } ;
5757 let filename = require . resolve ( '../packages/isomorphic-unfetch' ) ;
5858 vm . runInNewContext ( fs . readFileSync ( filename ) , sandbox , filename ) ;
@@ -69,7 +69,7 @@ describe('isomorphic-unfetch', () => {
6969 exports : { } ,
7070 require : ( ) => unfetch
7171 } ;
72- sandbox . global = sandbox . window ;
72+ sandbox . global = sandbox . self = sandbox . window ;
7373 sandbox . module = { exports : sandbox . exports } ;
7474 let filename = require . resolve ( '../packages/isomorphic-unfetch' ) ;
7575 vm . runInNewContext ( fs . readFileSync ( filename ) , sandbox , filename ) ;
0 commit comments