Skip to content

Error compiling with Closure Compiler #28

Description

@GoogleCodeExporter
When compiling ejs.js with Closure Compiler 
(https://code.google.com/p/closure-compiler/), I get the following error:

ERROR - The use of scope variable e is not allowed within a catch block with a 
catch exception of the same name.
                    var e = new Error();

This is triggered by ejs.js:365, near the end of the EJS.Compiler.prototype 
definition. The fix is pretty easy: just name the inner declaration of 'e' 
something else.

We're using EJS as part of much larger JS app, and would rather compile it 
together with our other files, rather than use the pre-compiled version. In 
addition, we don't use the view helpers, so this helps cuts down on file size.

Original issue reported on code.google.com by hes...@pubvest.com on 2 Apr 2013 at 10:24

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions