fix: add native function to create preload script (#13032)

* add native function to create preload script

* add tests

* fix formatting

* fix tests

* rerun CI
This commit is contained in:
PalmerAL 2018-07-12 21:17:11 -05:00 committed by Cheng Zhao
parent e922b1733b
commit ffc15e02a6
4 changed files with 36 additions and 4 deletions

10
spec/fixtures/module/preload-context.js vendored Normal file
View file

@ -0,0 +1,10 @@
var test = 'test' // eslint-disable-line
const types = {
require: typeof require,
electron: typeof electron,
window: typeof window,
localVar: typeof window.test
}
console.log(JSON.stringify(types))