Throw error for using rest parameter in property setter (#3335)

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2019-11-20 12:21:05 +01:00
committed by GitHub
parent a0a71da025
commit 7f6f562adb
4 changed files with 10 additions and 0 deletions
@@ -35,6 +35,7 @@ CheckSyntaxError ('function x (... c = 5) {}');
CheckSyntaxError ('function x (...) {}');
CheckSyntaxError ('function x (a, a, ...a) {}');
CheckSyntaxError ('"use strict" function x (...arguments) {}');
CheckSyntaxError ('var o = { set e (...args) { } }');
rest_params = ['hello', true, 7, {}, [], function () {}];