1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 03:24:13 +01:00

Co-opt :js! for REPL. Add optional context argument. Add docs. Fix history bug.

This commit is contained in:
Kris Maglione
2011-02-17 07:17:19 -05:00
parent 125739c29c
commit 380922ebcc
4 changed files with 69 additions and 18 deletions

View File

@@ -402,7 +402,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
if (info && info.file[0] !== "[")
({ file: fileName, line: lineNumber, context: ctxt }) = info;
if (!context)
if (!context && fileName && fileName[0] !== "[")
context = _userContext || ctxt;
if (isinstance(context, ["Sandbox"]))