Permalink
Browse files

Use ECMAScript 5 by default

  • Loading branch information...
1 parent c7a752c commit f4436bbfbf70e169a129673967d9157265398c73 @rykov rykov committed Jun 6, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/closure/compiler.rb
View
7 lib/closure/compiler.rb
@@ -9,8 +9,11 @@ class Error < StandardError; end
# The Closure::Compiler is a basic wrapper around the actual JAR. There's not
# much to see here.
class Compiler
-
- DEFAULT_OPTIONS = {:warning_level => 'QUIET'}
+
+ DEFAULT_OPTIONS = {
+ :warning_level => 'QUIET',
+ :language_in => 'ECMASCRIPT5'
+ }
# When you create a Compiler, pass in the flags and options.
def initialize(options={})

0 comments on commit f4436bb

Please sign in to comment.