Skip to content

Commit f4436bb

Browse files
committed
Use ECMAScript 5 by default
1 parent c7a752c commit f4436bb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/closure/compiler.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ class Error < StandardError; end
99
# The Closure::Compiler is a basic wrapper around the actual JAR. There's not
1010
# much to see here.
1111
class Compiler
12-
13-
DEFAULT_OPTIONS = {:warning_level => 'QUIET'}
12+
13+
DEFAULT_OPTIONS = {
14+
:warning_level => 'QUIET',
15+
:language_in => 'ECMASCRIPT5'
16+
}
1417

1518
# When you create a Compiler, pass in the flags and options.
1619
def initialize(options={})

0 commit comments

Comments
 (0)