mirror of https://github.com/tc39/test262.git
Add test for import with a rest parameter, invalid syntax
This commit is contained in:
parent
51a0bad7d4
commit
bf5cab4f89
|
@ -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(...[''])
|
Loading…
Reference in New Issue