lib/minjs/ecma262/st.rb in minjs-0.1.10 vs lib/minjs/ecma262/st.rb in minjs-0.2.0
- old
+ new
@@ -1144,22 +1144,20 @@
end
#12.14
class StTry < St
attr_reader :context
- attr_reader :catch_context
attr_reader :try, :catch, :finally
- def initialize(context, catch_context, try, catch, finally)
+ def initialize(context, try, catch, finally)
@context = context
- @catch_context = catch_context
@try = try
@catch = catch
@finally = finally
end
def deep_dup
- self.class.new(@context, @catch_context, @try, @catch, @finally)
+ self.class.new(@context, @try, @catch, @finally)
end
def replace(from, to)
if from .eql? @try
@try = to