chore: update to standard 12

This commit is contained in:
Samuel Attard 2018-09-14 02:10:51 +10:00
parent 9e85bdb02c
commit 558fff69e7
No known key found for this signature in database
GPG key ID: E89DDE5742D58C4E
198 changed files with 4455 additions and 2940 deletions

View file

@ -1,11 +1,11 @@
const path = require('path')
const {remote} = require('electron')
const {Buffer} = window
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'))
remote.require(path.join(__dirname, 'print_name.js')).echo(Buffer.from('bar'))
window.test = new Buffer('buffer')
window.test = Buffer.from('buffer')