Add test for import with a rest parameter, invalid syntax

This commit is contained in:
Leo Balter 2018-10-24 18:17:47 -04:00 committed by Rick Waldron
parent 51a0bad7d4
commit bf5cab4f89
1 changed files with 20 additions and 0 deletions

View File

@ -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(...[''])