File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 8989 - uses : actions/checkout@v1
9090 - uses : actions/setup-node@v1
9191 with :
92- node-version : 12 .x
92+ node-version : 10 .x
9393 - name : install dependencies
9494 run : yarn install
9595 - name : test
Original file line number Diff line number Diff line change @@ -143,11 +143,21 @@ function getTemplateCompiler(templateCompilerPath, EmberENV = {}) {
143143 // the shared global config
144144 let clonedEmberENV = JSON . parse ( JSON . stringify ( EmberENV ) ) ;
145145
146- let context = vm . createContext ( {
146+ let sandbox = {
147147 EmberENV : clonedEmberENV ,
148148 module : { require, exports : { } } ,
149149 require,
150- } ) ;
150+ } ;
151+
152+ // if we are running on a Node version _without_ a globalThis
153+ // we must provide a `global`
154+ //
155+ // this is due to https://git.io/Jtb7s (Ember 3.27+)
156+ if ( typeof globalThis === 'undefined' ) {
157+ sandbox . global = sandbox ;
158+ }
159+
160+ let context = vm . createContext ( sandbox ) ;
151161
152162 script . runInContext ( context ) ;
153163
You can’t perform that action at this time.
0 commit comments