Skip to content

Commit c1c88a9

Browse files
adambeynonelia
authored andcommittedSep 8, 2014
Disable operator inlining by default
1 parent 8f3b19a commit c1c88a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎lib/opal/cli_options.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def initialize
103103
options[:arity_check] = true
104104
end
105105

106-
on('-V', 'Disable Inline Operators') do
107-
options[:inline_operators] = false
106+
on('-V', 'Enable inline Operators') do
107+
options[:inline_operators] = true
108108
end
109109

110110
dynamic_require_levels = %w[error warning ignore]

‎lib/opal/compiler.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def self.compiler_option(name, default_value, options = {})
4646
compiler_option :requirable, false, :as => :requirable?
4747

4848
# are operators compiled inline
49-
compiler_option :inline_operators, true, :as => :inline_operators?
49+
compiler_option :inline_operators, false, :as => :inline_operators?
5050

5151
attr_reader :result, :fragments
5252

0 commit comments

Comments
 (0)
Please sign in to comment.