зеркало из https://github.com/electron/electron.git
12 строки
297 B
JavaScript
12 строки
297 B
JavaScript
const path = require('path')
|
|
const {remote} = require('electron')
|
|
const {Buffer} = window
|
|
|
|
delete window.Buffer
|
|
delete global.Buffer
|
|
|
|
// Test that remote.js doesn't use Buffer global
|
|
remote.require(path.join(__dirname, 'print_name.js')).echo(new Buffer('bar'))
|
|
|
|
window.test = new Buffer('buffer')
|