chore: have 'use strict' consistently across our lib files (#14721)

This commit is contained in:
Samuel Attard 2018-09-23 00:28:50 +12:00 committed by GitHub
parent 0a621bfea1
commit 176a76217c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 120 additions and 4 deletions

View file

@ -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

View file

@ -1,3 +1,5 @@
'use strict'
const moduleList = require('@electron/internal/common/api/module-list')
exports.memoizedGetter = (getter) => {

View file

@ -1,3 +1,5 @@
'use strict'
// Common modules, please sort alphabetically
module.exports = [
{ name: 'clipboard', file: 'clipboard' },

View file

@ -1 +1,3 @@
'use strict'
module.exports = process.atomBinding('native_image')

View file

@ -1 +1,3 @@
'use strict'
module.exports = process.atomBinding('shell')

View file

@ -1,3 +1,5 @@
'use strict';
(function () {
const asar = process.binding('atom_common_asar')
const assert = require('assert')

View file

@ -1,3 +1,5 @@
'use strict'
;(function () { // eslint-disable-line
return function (process, require, asarSource) {
const source = process.binding('natives')

View file

@ -1,3 +1,5 @@
'use strict'
module.exports = function atomBindingSetup (binding, processType) {
return function atomBinding (name) {
try {

View file

@ -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.

View file

@ -1,3 +1,5 @@
'use strict'
const timers = require('timers')
const util = require('util')

View file

@ -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

View file

@ -1,3 +1,5 @@
'use strict'
const path = require('path')
const Module = require('module')