1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 06:35:46 +01:00

Fix possible crash when RC file can't be located. Closes issue #448.

This commit is contained in:
Kris Maglione
2011-03-16 00:00:05 -04:00
parent f1965c81ff
commit 1360c6d690
2 changed files with 2 additions and 3 deletions

View File

@@ -620,7 +620,6 @@ function memoize(obj, key, getter) {
});
}
catch (e) {
util.reportError(e);
obj[key] = getter.call(obj, key);
}
}

View File

@@ -110,8 +110,8 @@ var Contexts = Module("contexts", {
completer: function (context) modules.completion.group(context)
});
memoize(modules, "userContext", function () contexts.Context(modules.io.getRCFile("~"), contexts.user, [modules, true]));
memoize(modules, "_userContext", function () contexts.Context(modules.io.getRCFile("~"), contexts.user, [modules.userContext]));
memoize(modules, "userContext", function () contexts.Context(modules.io.getRCFile("~", true), contexts.user, [modules, true]));
memoize(modules, "_userContext", function () contexts.Context(modules.io.getRCFile("~", true), contexts.user, [modules.userContext]));
},
cleanup: function () {