cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject svn commit: r292798 - /cocoon/blocks/scratchpad/trunk/java/org/apache/cocoon/components/flow/javascript/fom/AO_FOM_JavaScriptInterpreter.java
Date Fri, 30 Sep 2005 16:06:40 GMT
Author: sylvain
Date: Fri Sep 30 09:06:38 2005
New Revision: 292798

URL: http://svn.apache.org/viewcvs?rev=292798&view=rev
Log:
Use a new JSErrorReporter for each compilation

Modified:
    cocoon/blocks/scratchpad/trunk/java/org/apache/cocoon/components/flow/javascript/fom/AO_FOM_JavaScriptInterpreter.java

Modified: cocoon/blocks/scratchpad/trunk/java/org/apache/cocoon/components/flow/javascript/fom/AO_FOM_JavaScriptInterpreter.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/scratchpad/trunk/java/org/apache/cocoon/components/flow/javascript/fom/AO_FOM_JavaScriptInterpreter.java?rev=292798&r1=292797&r2=292798&view=diff
==============================================================================
--- cocoon/blocks/scratchpad/trunk/java/org/apache/cocoon/components/flow/javascript/fom/AO_FOM_JavaScriptInterpreter.java
(original)
+++ cocoon/blocks/scratchpad/trunk/java/org/apache/cocoon/components/flow/javascript/fom/AO_FOM_JavaScriptInterpreter.java
Fri Sep 30 09:06:38 2005
@@ -187,7 +187,6 @@
      *
      */
     Map compiledScripts = new HashMap();
-    JSErrorReporter errorReporter;
     
     boolean enableDebugger = false;
 
@@ -279,7 +278,6 @@
             scope = new Global(context);
             // Access to Cocoon internal objects
             AO_FOM_Cocoon.init(scope);
-            errorReporter = new JSErrorReporter(getLogger());
         }
         catch (Exception e) {
             Context.exit();
@@ -587,7 +585,7 @@
         context.setOptimizationLevel(OPTIMIZATION_LEVEL);
         context.setGeneratingDebug(true);
         context.setCompileFunctionsWithDynamicScope(true);
-        context.setErrorReporter(errorReporter);
+        context.setErrorReporter(new JSErrorReporter(getLogger()));
         AO_FOM_Cocoon cocoon = null;
         Scriptable thrScope = getSessionScope();
         synchronized (thrScope) {



Mime
View raw message