lib/opal/nodes/constants.rb in opal-0.7.0.beta1 vs lib/opal/nodes/constants.rb in opal-0.7.0.beta2

- old
+ new

@@ -21,21 +21,21 @@ children :name, :base def compile push expr(base) - wrap "$opal.cdecl($scope, '#{name}', ", ")" + wrap "Opal.cdecl($scope, '#{name}', ", ")" end end class ConstAssignNode < Base handle :casgn children :base, :name, :value def compile - push "$opal.casgn(" + push "Opal.casgn(" push expr(base) push ", '#{name}', " push expr(value) push ")" end @@ -67,10 +67,10 @@ handle :casgn3 children :name, :value def compile - push "$opal.casgn($opal.Object, '#{name}', " + push "Opal.casgn(Opal.Object, '#{name}', " push expr(value) push ")" end end end