Verify global.Buffer is undefined
This commit is contained in:
parent
ad03ba73a4
commit
6c40b1eead
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
try {
|
try {
|
||||||
console.log([typeof process, typeof setImmediate, typeof global, typeof Buffer].join(' '))
|
console.log([typeof process, typeof setImmediate, typeof global, typeof Buffer, typeof global.Buffer].join(' '))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e.message)
|
console.log(e.message)
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,7 +193,7 @@ describe('<webview> tag', function () {
|
||||||
|
|
||||||
it('preload script can require modules that still use "process" and "Buffer" when nodeintegration is off', function (done) {
|
it('preload script can require modules that still use "process" and "Buffer" when nodeintegration is off', function (done) {
|
||||||
webview.addEventListener('console-message', function (e) {
|
webview.addEventListener('console-message', function (e) {
|
||||||
assert.equal(e.message, 'object undefined object function')
|
assert.equal(e.message, 'object undefined object function undefined')
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
webview.setAttribute('preload', fixtures + '/module/preload-node-off-wrapper.js')
|
webview.setAttribute('preload', fixtures + '/module/preload-node-off-wrapper.js')
|
||||||
|
|
Loading…
Reference in a new issue