main - stackTraceLimit = 100

This commit is contained in:
Benjamin Pasero 2018-03-13 07:39:38 +01:00
parent 9d578694d0
commit 9b6c69c8c8
2 changed files with 6 additions and 2 deletions

View file

@ -10,6 +10,8 @@ perf.mark('main:started');
// Perf measurements
global.perfStartTime = Date.now();
Error.stackTraceLimit = 100; // increase number of stack frames (from 10, https://github.com/v8/v8/wiki/Stack-Trace-API)
//#region Add support for using node_modules.asar
(function () {
const path = require('path');
@ -366,7 +368,7 @@ function getNLSConfiguration(locale) {
}
target[module] = targetStrings;
}
writes.push(writeFile(path.join(coreLocation, bundle.replace(/\//g,'!') + '.nls.json'), JSON.stringify(target)));
writes.push(writeFile(path.join(coreLocation, bundle.replace(/\//g, '!') + '.nls.json'), JSON.stringify(target)));
}
writes.push(writeFile(translationsConfigFile, JSON.stringify(packConfig.translations)));
return Promise.all(writes);

View file

@ -878,7 +878,9 @@ export class CodeWindow implements ICodeWindow {
}
public send(channel: string, ...args: any[]): void {
this._win.webContents.send(channel, ...args);
if (this._win) {
this._win.webContents.send(channel, ...args);
}
}
public updateTouchBar(groups: ICommandAction[][]): void {