electron/spec/fixtures/module/preload-node-off.js

14 lines
279 B
JavaScript
Raw Normal View History

2016-03-25 20:03:49 +00:00
setImmediate(function () {
try {
2018-05-14 22:00:49 +00:00
const types = {
process: typeof process,
setImmediate: typeof setImmediate,
global: typeof global,
Buffer: typeof Buffer
}
console.log(JSON.stringify(types))
} catch (e) {
2016-03-25 20:03:49 +00:00
console.log(e.message)
}
2016-03-25 20:03:49 +00:00
})