1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 11:18:00 +01:00

Throw an error when trying to replace a plugin context.

This commit is contained in:
Kris Maglione
2011-02-27 05:32:18 -05:00
parent 65a8369bed
commit 02b43a6986

View File

@@ -213,7 +213,10 @@ var Contexts = Module("contexts", {
Object.defineProperty(plugins, self.NAME, {
configurable: true,
enumerable: true,
value: self
get: function () self,
set: function (val) {
throw TypeError("Not replacing plugin context for " + self.NAME);
}
});
}