From bf5cab4f895a574a9d4b0995ff9855ef2f0fb81b Mon Sep 17 00:00:00 2001 From: Leo Balter <leonardo.balter@gmail.com> Date: Wed, 24 Oct 2018 18:17:47 -0400 Subject: [PATCH] Add test for import with a rest parameter, invalid syntax --- src/dynamic-import/no-rest-param.case | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/dynamic-import/no-rest-param.case diff --git a/src/dynamic-import/no-rest-param.case b/src/dynamic-import/no-rest-param.case new file mode 100644 index 0000000000..03320b5359 --- /dev/null +++ b/src/dynamic-import/no-rest-param.case @@ -0,0 +1,20 @@ +// Copyright (C) 2018 Leo Balter. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +desc: ImportCall is not extensible - no rest parameter +template: syntax/invalid +info: | + ImportCall : + import( AssignmentExpression[+In, ?Yield] ) + + Forbidden Extensions + + - ImportCall must not be extended. + + This production doesn't allow the following production from ArgumentsList: + + ... AssignmentExpression +---*/ + +//- import +import(...['']) -- GitLab