mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 05:52:27 +01:00
Another stab at nuking bootstrap.js sandbox at shutdown. We'll see how this goes...
This commit is contained in:
@@ -313,7 +313,9 @@ function iterOwnProperties(obj) {
|
||||
|
||||
function deprecated(alternative, fn) {
|
||||
if (isObject(fn))
|
||||
return Class.Property(iter(fn).map(([k, v]) => [k, callable(v) ? deprecated(alternative, v) : v])
|
||||
return Class.Property(iter(fn).map(([k, v]) => [k,
|
||||
callable(v) ? deprecated(alternative, v)
|
||||
: v])
|
||||
.toObject());
|
||||
|
||||
let name,
|
||||
@@ -331,6 +333,8 @@ function deprecated(alternative, fn) {
|
||||
alternative);
|
||||
return func.apply(this, arguments);
|
||||
}
|
||||
if (func.name)
|
||||
deprecatedMethod.realName = func.name;
|
||||
|
||||
return callable(fn) ? deprecatedMethod : Class.Property({
|
||||
get: function () deprecatedMethod,
|
||||
|
||||
@@ -826,8 +826,10 @@ var JavaScript = Module("javascript", {
|
||||
|
||||
leave: function leave(params) {
|
||||
leave.superapply(this, arguments);
|
||||
if (!params.push)
|
||||
if (!params.push) {
|
||||
modes.delay(function () { modes.pop(); });
|
||||
Cu.nukeSandbox(this.context);
|
||||
}
|
||||
},
|
||||
|
||||
updatePrompt: function updatePrompt() {
|
||||
|
||||
Reference in New Issue
Block a user