Add spec for Buffer global
This commit is contained in:
parent
80dad58a59
commit
70010fdb8e
5 changed files with 11 additions and 10 deletions
2
spec/fixtures/module/preload-node-off.js
vendored
2
spec/fixtures/module/preload-node-off.js
vendored
|
@ -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)
|
||||
}
|
||||
|
|
2
spec/fixtures/module/preload.js
vendored
2
spec/fixtures/module/preload.js
vendored
|
@ -1 +1 @@
|
|||
console.log([typeof require, typeof module, typeof process].join(' '))
|
||||
console.log([typeof require, typeof module, typeof process, typeof Buffer].join(' '))
|
||||
|
|
2
spec/fixtures/module/send-later.js
vendored
2
spec/fixtures/module/send-later.js
vendored
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue