Update standard to v8 to be inline with standard-markdown
This commit is contained in:
parent
fefc7c23f9
commit
a9d5699a52
2 changed files with 3 additions and 3 deletions
|
@ -279,7 +279,7 @@ ipcMain.on('ELECTRON_BROWSER_CONSTRUCTOR', function (event, id, args) {
|
|||
|
||||
// Call new with array of arguments.
|
||||
// http://stackoverflow.com/questions/1606797/use-of-apply-with-new-operator-is-this-possible
|
||||
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args)))
|
||||
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args)))()
|
||||
event.returnValue = valueToMeta(event.sender, obj)
|
||||
} catch (error) {
|
||||
event.returnValue = exceptionToMeta(error)
|
||||
|
@ -302,7 +302,7 @@ ipcMain.on('ELECTRON_BROWSER_MEMBER_CONSTRUCTOR', function (event, id, method, a
|
|||
let constructor = objectsRegistry.get(id)[method]
|
||||
|
||||
// Call new with array of arguments.
|
||||
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args)))
|
||||
let obj = new (Function.prototype.bind.apply(constructor, [null].concat(args)))()
|
||||
event.returnValue = valueToMeta(event.sender, obj)
|
||||
} catch (error) {
|
||||
event.returnValue = exceptionToMeta(error)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"electabul": "~0.0.4",
|
||||
"electron-docs-linter": "^1.8.1",
|
||||
"request": "*",
|
||||
"standard": "^7.1.2",
|
||||
"standard": "^8.4.0",
|
||||
"standard-markdown": "^2.1.1"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
|
Loading…
Reference in a new issue