electron/spec/fixtures/module/preload-required-module.js
2020-03-20 13:28:31 -07:00

12 lines
273 B
JavaScript

try {
const types = {
process: typeof process,
setImmediate: typeof setImmediate,
global: typeof global,
Buffer: typeof Buffer,
'global.Buffer': typeof global.Buffer
};
console.log(JSON.stringify(types));
} catch (e) {
console.log(e.message);
}