chore: have 'use strict' consistently across our lib files (#14721)
This commit is contained in:
parent
0a621bfea1
commit
176a76217c
57 changed files with 120 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
const moduleList = require('@electron/internal/common/api/module-list')
|
||||
|
||||
exports.memoizedGetter = (getter) => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
// Common modules, please sort alphabetically
|
||||
module.exports = [
|
||||
{ name: 'clipboard', file: 'clipboard' },
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
'use strict'
|
||||
|
||||
module.exports = process.atomBinding('native_image')
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
'use strict'
|
||||
|
||||
module.exports = process.atomBinding('shell')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
(function () {
|
||||
const asar = process.binding('atom_common_asar')
|
||||
const assert = require('assert')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
;(function () { // eslint-disable-line
|
||||
return function (process, require, asarSource) {
|
||||
const source = process.binding('natives')
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
module.exports = function atomBindingSetup (binding, processType) {
|
||||
return function atomBinding (name) {
|
||||
try {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
const timers = require('timers')
|
||||
const util = require('util')
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
const path = require('path')
|
||||
const Module = require('module')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue