Commit 9007d945 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Add required variable to catch statement test.

Missing variable in catch clause is a JS syntax error.
This happened to work in old Esprima, but no more works in
neither new Esprima nor RKelly.
parent fe454332
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ describe JsDuck::Js::Serializer do
    end

    it "try catch statement with empty catch" do
      test("try {} catch () {}")
      test("try {} catch (e) {}")
    end

    it "try finally statement" do