Add spec for Buffer global

This commit is contained in:
Kevin Sawicki 2017-02-06 13:54:41 -08:00
parent 80dad58a59
commit 70010fdb8e
5 changed files with 11 additions and 10 deletions

View file

@ -1,6 +1,6 @@
setImmediate(function () {
try {
console.log([typeof process, typeof setImmediate, typeof global].join(' '))
console.log([typeof process, typeof setImmediate, typeof global, typeof Buffer].join(' '))
} catch (e) {
console.log(e.message)
}

View file

@ -1 +1 @@
console.log([typeof require, typeof module, typeof process].join(' '))
console.log([typeof require, typeof module, typeof process, typeof Buffer].join(' '))

View file

@ -1,4 +1,4 @@
var ipcRenderer = require('electron').ipcRenderer
window.onload = function () {
ipcRenderer.send('answer', typeof window.process)
ipcRenderer.send('answer', typeof window.process, typeof window.Buffer)
}