From e926226437221477727861b9cafef8c816a1b880 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 4 Apr 2011 21:23:57 -0400 Subject: [PATCH] Fix issue with REPL completion with a wrappedJSObject context. --- common/modules/javascript.jsm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/common/modules/javascript.jsm b/common/modules/javascript.jsm index 43cab63c..7d8de811 100644 --- a/common/modules/javascript.jsm +++ b/common/modules/javascript.jsm @@ -117,12 +117,8 @@ var JavaScript = Module("javascript", { return cache[key]; context[JavaScript.EVAL_TMP] = tmp; - context[JavaScript.EVAL_EXPORT] = function export_(obj) cache[key] = obj; try { - if (tmp != null) // Temporary hack until bug 609949 is fixed. - this.modules.dactyl.userEval(JavaScript.EVAL_EXPORT + "(" + arg + ")", context, /*L*/"[Command Line Completion]", 1); - else - cache[key] = this.modules.dactyl.userEval(arg, context, /*L*/"[Command Line Completion]", 1); + cache[key] = this.modules.dactyl.userEval(arg, context, /*L*/"[Command Line Completion]", 1); return cache[key]; } @@ -646,7 +642,6 @@ var JavaScript = Module("javascript", { }, { EVAL_TMP: "__dactyl_eval_tmp", - EVAL_EXPORT: "__dactyl_eval_export", /** * A map of argument completion functions for named methods. The