From ca47fc46decead7ade0bbbd2ada85199078aafe5 Mon Sep 17 00:00:00 2001 From: smikes Date: Wed, 25 Feb 2015 20:41:15 -0700 Subject: [PATCH] add () to super call --- .../language/generators/generator.declareMethod.argSuperCall.js | 2 +- .../generators/generator.declareMethod.bodySuperCall.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/language/generators/generator.declareMethod.argSuperCall.js b/test/language/generators/generator.declareMethod.argSuperCall.js index 199cf9b79d..38364cf0a4 100644 --- a/test/language/generators/generator.declareMethod.argSuperCall.js +++ b/test/language/generators/generator.declareMethod.argSuperCall.js @@ -12,6 +12,6 @@ negative: SyntaxError ---*/ var obj = { - *foo(a = super) { + *foo(a = super()) { } }; diff --git a/test/language/generators/generator.declareMethod.bodySuperCall.js b/test/language/generators/generator.declareMethod.bodySuperCall.js index 8d95934936..a1186dc43b 100644 --- a/test/language/generators/generator.declareMethod.bodySuperCall.js +++ b/test/language/generators/generator.declareMethod.bodySuperCall.js @@ -13,6 +13,6 @@ negative: SyntaxError var obj = { *foo(a) { - super; + super(); } };