mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Add test for import with a rest parameter, invalid syntax
This commit is contained in:
parent
51a0bad7d4
commit
bf5cab4f89
20
src/dynamic-import/no-rest-param.case
Normal file
20
src/dynamic-import/no-rest-param.case
Normal 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(...[''])
|
Loading…
x
Reference in New Issue
Block a user