Fix unnamed functions

This commit is contained in:
toasted-nutbread 2020-02-15 19:49:56 -05:00
parent c3e7280365
commit 56567903a5
2 changed files with 3 additions and 3 deletions

View File

@ -60,8 +60,8 @@ class SettingsPopupPreview {
this.frontend = new Frontend(this.popup); this.frontend = new Frontend(this.popup);
this.frontend.setEnabled = function () {}; this.frontend.setEnabled = () => {};
this.frontend.searchClear = function () {}; this.frontend.searchClear = () => {};
await this.frontend.prepare(); await this.frontend.prepare();

View File

@ -33,7 +33,7 @@ function utilIsolate(value) {
} }
function utilFunctionIsolate(func) { function utilFunctionIsolate(func) {
return function (...args) { return function isolatedFunction(...args) {
try { try {
args = args.map((v) => utilIsolate(v)); args = args.map((v) => utilIsolate(v));
return func.call(this, ...args); return func.call(this, ...args);