From 176a76217c5f70d92bf21f6782a0c838a1e5058e Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Sun, 23 Sep 2018 00:28:50 +1200 Subject: [PATCH] chore: have 'use strict' consistently across our lib files (#14721) --- lib/.eslintrc | 8 ++++++++ lib/browser/api/auto-updater.js | 2 ++ lib/browser/api/auto-updater/auto-updater-native.js | 2 ++ lib/browser/api/auto-updater/squirrel-update-win.js | 2 ++ lib/browser/api/content-tracing.js | 2 ++ lib/browser/api/exports/electron.js | 2 ++ lib/browser/api/global-shortcut.js | 2 ++ lib/browser/api/ipc-main.js | 2 ++ lib/browser/api/menu-item-roles.js | 2 ++ lib/browser/api/menu-utils.js | 2 ++ lib/browser/api/module-list.js | 2 ++ lib/browser/api/notification.js | 2 ++ lib/browser/api/power-monitor.js | 2 ++ lib/browser/api/power-save-blocker.js | 2 ++ lib/browser/api/protocol.js | 2 ++ lib/browser/api/screen.js | 2 ++ lib/browser/api/session.js | 2 ++ lib/browser/api/system-preferences.js | 2 ++ lib/browser/api/touch-bar.js | 2 ++ lib/browser/api/tray.js | 2 ++ lib/browser/chrome-extension.js | 2 ++ lib/common/api/clipboard.js | 2 ++ lib/common/api/exports/electron.js | 2 ++ lib/common/api/module-list.js | 2 ++ lib/common/api/native-image.js | 2 ++ lib/common/api/shell.js | 2 ++ lib/common/asar.js | 2 ++ lib/common/asar_init.js | 2 ++ lib/common/atom-binding-setup.js | 2 ++ lib/common/buffer-utils.js | 2 ++ lib/common/init.js | 2 ++ lib/common/parse-features-string.js | 2 ++ lib/common/reset-search-paths.js | 2 ++ lib/isolated_renderer/init.js | 4 ++-- lib/renderer/api/desktop-capturer.js | 2 ++ lib/renderer/api/exports/electron.js | 2 ++ lib/renderer/api/module-list.js | 2 ++ lib/renderer/api/screen.js | 2 ++ lib/renderer/chrome-api.js | 2 ++ lib/renderer/content-scripts-injector.js | 2 ++ lib/renderer/extensions/event.js | 2 ++ lib/renderer/extensions/i18n.js | 2 ++ lib/renderer/extensions/storage.js | 2 ++ lib/renderer/extensions/web-navigation.js | 2 ++ lib/renderer/inspector.js | 2 ++ lib/renderer/security-warnings.js | 2 ++ lib/renderer/web-frame-init.js | 2 ++ lib/renderer/web-view/web-view-constants.js | 2 ++ lib/renderer/window-setup.js | 4 ++-- lib/sandboxed_renderer/api/exports/child_process.js | 2 ++ lib/sandboxed_renderer/api/exports/electron.js | 2 ++ lib/sandboxed_renderer/api/exports/fs.js | 2 ++ lib/sandboxed_renderer/api/exports/os.js | 2 ++ lib/sandboxed_renderer/api/exports/path.js | 2 ++ lib/sandboxed_renderer/api/ipc-renderer.js | 2 ++ lib/sandboxed_renderer/api/module-list.js | 2 ++ lib/sandboxed_renderer/init.js | 2 ++ 57 files changed, 120 insertions(+), 4 deletions(-) create mode 100644 lib/.eslintrc diff --git a/lib/.eslintrc b/lib/.eslintrc new file mode 100644 index 0000000000..7f629e4735 --- /dev/null +++ b/lib/.eslintrc @@ -0,0 +1,8 @@ +{ + "parserOptions": { + "sourceType": "script" + }, + "rules": { + "strict": ["error", "global"] + } +} diff --git a/lib/browser/api/auto-updater.js b/lib/browser/api/auto-updater.js index d15fa85a1a..db3e8da158 100644 --- a/lib/browser/api/auto-updater.js +++ b/lib/browser/api/auto-updater.js @@ -1,3 +1,5 @@ +'use strict' + if (process.platform === 'win32') { module.exports = require('@electron/internal/browser/api/auto-updater/auto-updater-win') } else { diff --git a/lib/browser/api/auto-updater/auto-updater-native.js b/lib/browser/api/auto-updater/auto-updater-native.js index c5ed2a94b9..d15a3c2e4a 100644 --- a/lib/browser/api/auto-updater/auto-updater-native.js +++ b/lib/browser/api/auto-updater/auto-updater-native.js @@ -1,3 +1,5 @@ +'use strict' + const EventEmitter = require('events').EventEmitter const { autoUpdater, AutoUpdater } = process.atomBinding('auto_updater') diff --git a/lib/browser/api/auto-updater/squirrel-update-win.js b/lib/browser/api/auto-updater/squirrel-update-win.js index fecf7958cd..f1dc9387ca 100644 --- a/lib/browser/api/auto-updater/squirrel-update-win.js +++ b/lib/browser/api/auto-updater/squirrel-update-win.js @@ -1,3 +1,5 @@ +'use strict' + const fs = require('fs') const path = require('path') const spawn = require('child_process').spawn diff --git a/lib/browser/api/content-tracing.js b/lib/browser/api/content-tracing.js index fbf676236b..81bd70f1eb 100644 --- a/lib/browser/api/content-tracing.js +++ b/lib/browser/api/content-tracing.js @@ -1 +1,3 @@ +'use strict' + module.exports = process.atomBinding('content_tracing') diff --git a/lib/browser/api/exports/electron.js b/lib/browser/api/exports/electron.js index c2ba8725e4..0cf6c26732 100644 --- a/lib/browser/api/exports/electron.js +++ b/lib/browser/api/exports/electron.js @@ -1,3 +1,5 @@ +'use strict' + const common = require('@electron/internal/common/api/exports/electron') // since browser module list is also used in renderer, keep it separate. const moduleList = require('@electron/internal/browser/api/module-list') diff --git a/lib/browser/api/global-shortcut.js b/lib/browser/api/global-shortcut.js index 9654e095fc..ec9878ee43 100644 --- a/lib/browser/api/global-shortcut.js +++ b/lib/browser/api/global-shortcut.js @@ -1 +1,3 @@ +'use strict' + module.exports = process.atomBinding('global_shortcut').globalShortcut diff --git a/lib/browser/api/ipc-main.js b/lib/browser/api/ipc-main.js index 2c2978e973..d610ac91f9 100644 --- a/lib/browser/api/ipc-main.js +++ b/lib/browser/api/ipc-main.js @@ -1,3 +1,5 @@ +'use strict' + const EventEmitter = require('events').EventEmitter const emitter = new EventEmitter() diff --git a/lib/browser/api/menu-item-roles.js b/lib/browser/api/menu-item-roles.js index 5cadcf92b2..4055d2fcbe 100644 --- a/lib/browser/api/menu-item-roles.js +++ b/lib/browser/api/menu-item-roles.js @@ -1,3 +1,5 @@ +'use strict' + const { app } = require('electron') const roles = { diff --git a/lib/browser/api/menu-utils.js b/lib/browser/api/menu-utils.js index 0a60a88c9e..74682d7483 100644 --- a/lib/browser/api/menu-utils.js +++ b/lib/browser/api/menu-utils.js @@ -1,3 +1,5 @@ +'use strict' + function splitArray (arr, predicate) { const result = arr.reduce((multi, item) => { const current = multi[multi.length - 1] diff --git a/lib/browser/api/module-list.js b/lib/browser/api/module-list.js index 9f320c5298..02d73ec6d5 100644 --- a/lib/browser/api/module-list.js +++ b/lib/browser/api/module-list.js @@ -1,3 +1,5 @@ +'use strict' + const features = process.atomBinding('features') // Browser side modules, please sort alphabetically. diff --git a/lib/browser/api/notification.js b/lib/browser/api/notification.js index 19eca809f2..cc2374c11c 100644 --- a/lib/browser/api/notification.js +++ b/lib/browser/api/notification.js @@ -1,3 +1,5 @@ +'use strict' + const { EventEmitter } = require('events') const { Notification, isSupported } = process.atomBinding('notification') diff --git a/lib/browser/api/power-monitor.js b/lib/browser/api/power-monitor.js index 8890b6eb59..5e3371dcc5 100644 --- a/lib/browser/api/power-monitor.js +++ b/lib/browser/api/power-monitor.js @@ -1,3 +1,5 @@ +'use strict' + const { EventEmitter } = require('events') const { powerMonitor, PowerMonitor } = process.atomBinding('power_monitor') diff --git a/lib/browser/api/power-save-blocker.js b/lib/browser/api/power-save-blocker.js index 3e3c21fb62..964ead8a26 100644 --- a/lib/browser/api/power-save-blocker.js +++ b/lib/browser/api/power-save-blocker.js @@ -1 +1,3 @@ +'use strict' + module.exports = process.atomBinding('power_save_blocker').powerSaveBlocker diff --git a/lib/browser/api/protocol.js b/lib/browser/api/protocol.js index cca01da05b..0f1b0e68d1 100644 --- a/lib/browser/api/protocol.js +++ b/lib/browser/api/protocol.js @@ -1,3 +1,5 @@ +'use strict' + const { app, session } = require('electron') // Global protocol APIs. diff --git a/lib/browser/api/screen.js b/lib/browser/api/screen.js index 3a911504b6..a91df7dda2 100644 --- a/lib/browser/api/screen.js +++ b/lib/browser/api/screen.js @@ -1,3 +1,5 @@ +'use strict' + const { EventEmitter } = require('events') const { screen, Screen } = process.atomBinding('screen') diff --git a/lib/browser/api/session.js b/lib/browser/api/session.js index 60fed0ce68..08c10eeff9 100644 --- a/lib/browser/api/session.js +++ b/lib/browser/api/session.js @@ -1,3 +1,5 @@ +'use strict' + const { EventEmitter } = require('events') const { app } = require('electron') const { fromPartition, Session, Cookies } = process.atomBinding('session') diff --git a/lib/browser/api/system-preferences.js b/lib/browser/api/system-preferences.js index 5d963baae8..bb663e886f 100644 --- a/lib/browser/api/system-preferences.js +++ b/lib/browser/api/system-preferences.js @@ -1,3 +1,5 @@ +'use strict' + const { EventEmitter } = require('events') const { systemPreferences, SystemPreferences } = process.atomBinding('system_preferences') diff --git a/lib/browser/api/touch-bar.js b/lib/browser/api/touch-bar.js index bb65e20cad..ddacc73333 100644 --- a/lib/browser/api/touch-bar.js +++ b/lib/browser/api/touch-bar.js @@ -1,3 +1,5 @@ +'use strict' + const { EventEmitter } = require('events') let nextItemID = 1 diff --git a/lib/browser/api/tray.js b/lib/browser/api/tray.js index 6f01540e39..1c6c108ec6 100644 --- a/lib/browser/api/tray.js +++ b/lib/browser/api/tray.js @@ -1,3 +1,5 @@ +'use strict' + const { EventEmitter } = require('events') const { Tray } = process.atomBinding('tray') diff --git a/lib/browser/chrome-extension.js b/lib/browser/chrome-extension.js index 17d4b6dbe1..8f10658320 100644 --- a/lib/browser/chrome-extension.js +++ b/lib/browser/chrome-extension.js @@ -1,3 +1,5 @@ +'use strict' + const { app, ipcMain, webContents, BrowserWindow } = require('electron') const { getAllWebContents } = process.atomBinding('web_contents') const renderProcessPreferences = process.atomBinding('render_process_preferences').forAllWebContents() diff --git a/lib/common/api/clipboard.js b/lib/common/api/clipboard.js index b52524d759..7e3ab510e0 100644 --- a/lib/common/api/clipboard.js +++ b/lib/common/api/clipboard.js @@ -1,3 +1,5 @@ +'use strict' + if (process.platform === 'linux' && process.type === 'renderer') { // On Linux we could not access clipboard in renderer process. module.exports = require('electron').remote.clipboard diff --git a/lib/common/api/exports/electron.js b/lib/common/api/exports/electron.js index 1ec9f79987..49c670201e 100644 --- a/lib/common/api/exports/electron.js +++ b/lib/common/api/exports/electron.js @@ -1,3 +1,5 @@ +'use strict' + const moduleList = require('@electron/internal/common/api/module-list') exports.memoizedGetter = (getter) => { diff --git a/lib/common/api/module-list.js b/lib/common/api/module-list.js index b1ae86993f..38f3832caf 100644 --- a/lib/common/api/module-list.js +++ b/lib/common/api/module-list.js @@ -1,3 +1,5 @@ +'use strict' + // Common modules, please sort alphabetically module.exports = [ { name: 'clipboard', file: 'clipboard' }, diff --git a/lib/common/api/native-image.js b/lib/common/api/native-image.js index 614298f51a..f703f9476c 100644 --- a/lib/common/api/native-image.js +++ b/lib/common/api/native-image.js @@ -1 +1,3 @@ +'use strict' + module.exports = process.atomBinding('native_image') diff --git a/lib/common/api/shell.js b/lib/common/api/shell.js index 78e2a0938b..6907d90119 100644 --- a/lib/common/api/shell.js +++ b/lib/common/api/shell.js @@ -1 +1,3 @@ +'use strict' + module.exports = process.atomBinding('shell') diff --git a/lib/common/asar.js b/lib/common/asar.js index b6d5f85934..d170ce9f70 100644 --- a/lib/common/asar.js +++ b/lib/common/asar.js @@ -1,3 +1,5 @@ +'use strict'; + (function () { const asar = process.binding('atom_common_asar') const assert = require('assert') diff --git a/lib/common/asar_init.js b/lib/common/asar_init.js index aa3567e8a2..d35b976dd8 100644 --- a/lib/common/asar_init.js +++ b/lib/common/asar_init.js @@ -1,3 +1,5 @@ +'use strict' + ;(function () { // eslint-disable-line return function (process, require, asarSource) { const source = process.binding('natives') diff --git a/lib/common/atom-binding-setup.js b/lib/common/atom-binding-setup.js index 8292a23d69..36954f56e0 100644 --- a/lib/common/atom-binding-setup.js +++ b/lib/common/atom-binding-setup.js @@ -1,3 +1,5 @@ +'use strict' + module.exports = function atomBindingSetup (binding, processType) { return function atomBinding (name) { try { diff --git a/lib/common/buffer-utils.js b/lib/common/buffer-utils.js index baa7399864..8bfdf66ee3 100644 --- a/lib/common/buffer-utils.js +++ b/lib/common/buffer-utils.js @@ -1,3 +1,5 @@ +'use strict' + // Note: Don't use destructuring assignment for `Buffer`, or we'll hit a // browserify bug that makes the statement invalid, throwing an error in // sandboxed renderer. diff --git a/lib/common/init.js b/lib/common/init.js index 6a6762376b..96d43f1133 100644 --- a/lib/common/init.js +++ b/lib/common/init.js @@ -1,3 +1,5 @@ +'use strict' + const timers = require('timers') const util = require('util') diff --git a/lib/common/parse-features-string.js b/lib/common/parse-features-string.js index d6682f639a..955ab8f480 100644 --- a/lib/common/parse-features-string.js +++ b/lib/common/parse-features-string.js @@ -1,3 +1,5 @@ +'use strict' + // parses a feature string that has the format used in window.open() // - `features` input string // - `emit` function(key, value) - called for each parsed KV diff --git a/lib/common/reset-search-paths.js b/lib/common/reset-search-paths.js index 11e4e49a09..5890592e33 100644 --- a/lib/common/reset-search-paths.js +++ b/lib/common/reset-search-paths.js @@ -1,3 +1,5 @@ +'use strict' + const path = require('path') const Module = require('module') diff --git a/lib/isolated_renderer/init.js b/lib/isolated_renderer/init.js index 8a2aba5b7b..a13256527f 100644 --- a/lib/isolated_renderer/init.js +++ b/lib/isolated_renderer/init.js @@ -1,7 +1,7 @@ -/* global binding */ - 'use strict' +/* global binding */ + const { send, sendSync } = binding const ipcRenderer = { diff --git a/lib/renderer/api/desktop-capturer.js b/lib/renderer/api/desktop-capturer.js index 00c657b638..0d2e7883ae 100644 --- a/lib/renderer/api/desktop-capturer.js +++ b/lib/renderer/api/desktop-capturer.js @@ -1,3 +1,5 @@ +'use strict' + const { ipcRenderer, nativeImage } = require('electron') const includes = [].includes diff --git a/lib/renderer/api/exports/electron.js b/lib/renderer/api/exports/electron.js index c3854259bf..63aa8d4662 100644 --- a/lib/renderer/api/exports/electron.js +++ b/lib/renderer/api/exports/electron.js @@ -1,3 +1,5 @@ +'use strict' + const common = require('@electron/internal/common/api/exports/electron') const moduleList = require('@electron/internal/renderer/api/module-list') diff --git a/lib/renderer/api/module-list.js b/lib/renderer/api/module-list.js index ed9732ee19..cc9b12e2d2 100644 --- a/lib/renderer/api/module-list.js +++ b/lib/renderer/api/module-list.js @@ -1,3 +1,5 @@ +'use strict' + const features = process.atomBinding('features') // Renderer side modules, please sort alphabetically. diff --git a/lib/renderer/api/screen.js b/lib/renderer/api/screen.js index 9eecd49dc5..bc1c33e34b 100644 --- a/lib/renderer/api/screen.js +++ b/lib/renderer/api/screen.js @@ -1 +1,3 @@ +'use strict' + module.exports = require('electron').remote.screen diff --git a/lib/renderer/chrome-api.js b/lib/renderer/chrome-api.js index 2d76c0c5ae..629370b959 100644 --- a/lib/renderer/chrome-api.js +++ b/lib/renderer/chrome-api.js @@ -1,3 +1,5 @@ +'use strict' + const { ipcRenderer } = require('electron') const Event = require('@electron/internal/renderer/extensions/event') const url = require('url') diff --git a/lib/renderer/content-scripts-injector.js b/lib/renderer/content-scripts-injector.js index 4ac75fd8cf..1972794840 100644 --- a/lib/renderer/content-scripts-injector.js +++ b/lib/renderer/content-scripts-injector.js @@ -1,3 +1,5 @@ +'use strict' + const { ipcRenderer } = require('electron') const { runInThisContext } = require('vm') diff --git a/lib/renderer/extensions/event.js b/lib/renderer/extensions/event.js index 4a951407f5..93f5ad2f7e 100644 --- a/lib/renderer/extensions/event.js +++ b/lib/renderer/extensions/event.js @@ -1,3 +1,5 @@ +'use strict' + class Event { constructor () { this.listeners = [] diff --git a/lib/renderer/extensions/i18n.js b/lib/renderer/extensions/i18n.js index b28e61cb86..027ec322b4 100644 --- a/lib/renderer/extensions/i18n.js +++ b/lib/renderer/extensions/i18n.js @@ -1,3 +1,5 @@ +'use strict' + // Implementation of chrome.i18n.getMessage // https://developer.chrome.com/extensions/i18n#method-getMessage // diff --git a/lib/renderer/extensions/storage.js b/lib/renderer/extensions/storage.js index f2a560f81c..40216c8cfb 100644 --- a/lib/renderer/extensions/storage.js +++ b/lib/renderer/extensions/storage.js @@ -1,3 +1,5 @@ +'use strict' + const fs = require('fs') const path = require('path') const { remote } = require('electron') diff --git a/lib/renderer/extensions/web-navigation.js b/lib/renderer/extensions/web-navigation.js index d907de1667..5ced9d5b79 100644 --- a/lib/renderer/extensions/web-navigation.js +++ b/lib/renderer/extensions/web-navigation.js @@ -1,3 +1,5 @@ +'use strict' + const Event = require('@electron/internal/renderer/extensions/event') const { ipcRenderer } = require('electron') diff --git a/lib/renderer/inspector.js b/lib/renderer/inspector.js index d6304f59d7..29c7cc12d3 100644 --- a/lib/renderer/inspector.js +++ b/lib/renderer/inspector.js @@ -1,3 +1,5 @@ +'use strict' + window.onload = function () { // Use menu API to show context menu. window.InspectorFrontendHost.showContextMenuAtPoint = createMenu diff --git a/lib/renderer/security-warnings.js b/lib/renderer/security-warnings.js index 600eba6101..0ed48a1949 100644 --- a/lib/renderer/security-warnings.js +++ b/lib/renderer/security-warnings.js @@ -1,3 +1,5 @@ +'use strict' + let shouldLog = null /** diff --git a/lib/renderer/web-frame-init.js b/lib/renderer/web-frame-init.js index 568f735d5c..bffd761612 100644 --- a/lib/renderer/web-frame-init.js +++ b/lib/renderer/web-frame-init.js @@ -1,3 +1,5 @@ +'use strict' + const { ipcRenderer, webFrame } = require('electron') const errorUtils = require('@electron/internal/common/error-utils') diff --git a/lib/renderer/web-view/web-view-constants.js b/lib/renderer/web-view/web-view-constants.js index 327114be50..86268f1578 100644 --- a/lib/renderer/web-view/web-view-constants.js +++ b/lib/renderer/web-view/web-view-constants.js @@ -1,3 +1,5 @@ +'use strict' + module.exports = { // Attributes. ATTRIBUTE_NAME: 'name', diff --git a/lib/renderer/window-setup.js b/lib/renderer/window-setup.js index c72dfe4318..f4ab44adb5 100644 --- a/lib/renderer/window-setup.js +++ b/lib/renderer/window-setup.js @@ -1,3 +1,5 @@ +'use strict' + // This file should have no requires since it is used by the isolated context // preload bundle. Instead arguments should be passed in for everything it // needs. @@ -21,8 +23,6 @@ // - document.hidden // - document.visibilityState -'use strict' - const { defineProperty } = Object // Helper function to resolve relative url. diff --git a/lib/sandboxed_renderer/api/exports/child_process.js b/lib/sandboxed_renderer/api/exports/child_process.js index ff39e96a12..d1abecfa25 100644 --- a/lib/sandboxed_renderer/api/exports/child_process.js +++ b/lib/sandboxed_renderer/api/exports/child_process.js @@ -1 +1,3 @@ +'use strict' + module.exports = require('electron').remote.require('child_process') diff --git a/lib/sandboxed_renderer/api/exports/electron.js b/lib/sandboxed_renderer/api/exports/electron.js index 2b69a1fa90..2992797b72 100644 --- a/lib/sandboxed_renderer/api/exports/electron.js +++ b/lib/sandboxed_renderer/api/exports/electron.js @@ -1,3 +1,5 @@ +'use strict' + const moduleList = require('@electron/internal/sandboxed_renderer/api/module-list') for (const { diff --git a/lib/sandboxed_renderer/api/exports/fs.js b/lib/sandboxed_renderer/api/exports/fs.js index 7342908e59..93c46e0293 100644 --- a/lib/sandboxed_renderer/api/exports/fs.js +++ b/lib/sandboxed_renderer/api/exports/fs.js @@ -1 +1,3 @@ +'use strict' + module.exports = require('electron').remote.require('fs') diff --git a/lib/sandboxed_renderer/api/exports/os.js b/lib/sandboxed_renderer/api/exports/os.js index ecd0d38a63..bbbbe58923 100644 --- a/lib/sandboxed_renderer/api/exports/os.js +++ b/lib/sandboxed_renderer/api/exports/os.js @@ -1 +1,3 @@ +'use strict' + module.exports = require('electron').remote.require('os') diff --git a/lib/sandboxed_renderer/api/exports/path.js b/lib/sandboxed_renderer/api/exports/path.js index f2b2f2a77f..fbc7b18089 100644 --- a/lib/sandboxed_renderer/api/exports/path.js +++ b/lib/sandboxed_renderer/api/exports/path.js @@ -1 +1,3 @@ +'use strict' + module.exports = require('electron').remote.require('path') diff --git a/lib/sandboxed_renderer/api/ipc-renderer.js b/lib/sandboxed_renderer/api/ipc-renderer.js index 402fa6cbe8..6298186292 100644 --- a/lib/sandboxed_renderer/api/ipc-renderer.js +++ b/lib/sandboxed_renderer/api/ipc-renderer.js @@ -1,3 +1,5 @@ +'use strict' + const ipcRenderer = require('@electron/internal/renderer/api/ipc-renderer') const v8Util = process.atomBinding('v8_util') diff --git a/lib/sandboxed_renderer/api/module-list.js b/lib/sandboxed_renderer/api/module-list.js index b1d032d406..e510462a73 100644 --- a/lib/sandboxed_renderer/api/module-list.js +++ b/lib/sandboxed_renderer/api/module-list.js @@ -1,3 +1,5 @@ +'use strict' + const features = process.atomBinding('features') module.exports = [ diff --git a/lib/sandboxed_renderer/init.js b/lib/sandboxed_renderer/init.js index d7535c4cf6..914562250c 100644 --- a/lib/sandboxed_renderer/init.js +++ b/lib/sandboxed_renderer/init.js @@ -1,3 +1,5 @@ +'use strict' + /* eslint no-eval: "off" */ /* global binding, Buffer */ const events = require('events')