mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:42:31 +02:00
Use evalInSandbox for :js rather than the subscript loader so that we can preserve file names/line numbers.
This commit is contained in:
1 parent
a21c2510e3
commit
2012279ad9
10 files changed
+46
-53
No files matched your search
@@ -66,7 +66,7 @@ if (!Object.getOwnPropertyDescriptor)
|
||||
return desc;
|
||||
};
|
||||
if (!Object.getOwnPropertyNames)
|
||||
Object.getOwnPropertyNames = function getOwnPropertyNames(obj) {
|
||||
Object.getOwnPropertyNames = function getOwnPropertyNames(obj, _debugger) {
|
||||
// This is an ugly and unfortunately necessary hack.
|
||||
if (hasOwnProperty.call(obj, "__iterator__")) {
|
||||
var oldIter = obj.__iterator__;
|
||||
|
||||
@@ -124,7 +124,7 @@ const Services = Module("Services", {
|
||||
}, {
|
||||
}, {
|
||||
init: function (dactyl, modules) {
|
||||
if (!this.get("extensionManager"))
|
||||
if (!modules.AddonManager && !this.get("extensionManager"))
|
||||
Components.utils.import("resource://gre/modules/AddonManager.jsm", modules);
|
||||
},
|
||||
javascript: function (dactyl, modules) {
|
||||
|
||||
Reference in new issue
Block a user