mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-26 23:23:30 +01:00
Fix running the REPL with certain arbitrary contexts, e.g., 'commands'.
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
// given in the LICENSE.txt file included with this file.
|
// given in the LICENSE.txt file included with this file.
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
let { getOwnPropertyNames } = Object;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
@@ -334,7 +336,7 @@ var JavaScript = Module("javascript", {
|
|||||||
_complete: function (objects, key, compl, string, last) {
|
_complete: function (objects, key, compl, string, last) {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
if (!this.window.Object.getOwnPropertyNames && !services.debugger.isOn && !this.context.message)
|
if (!getOwnPropertyNames && !services.debugger.isOn && !this.context.message)
|
||||||
this.context.message = "For better completion data, please enable the JavaScript debugger (:set jsdebugger)";
|
this.context.message = "For better completion data, please enable the JavaScript debugger (:set jsdebugger)";
|
||||||
|
|
||||||
let base = this.context.fork("js", this._top.offset);
|
let base = this.context.fork("js", this._top.offset);
|
||||||
|
|||||||
Reference in New Issue
Block a user