mirror of
https://github.com/tc39/test262.git
synced 2025-06-26 16:54:41 +02:00
Add test case for new call expression invalid syntax
This commit is contained in:
parent
a347df3aae
commit
65df2bd23c
15
src/dynamic-import/no-new-call-expression.case
Normal file
15
src/dynamic-import/no-new-call-expression.case
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
desc: ImportCall is a CallExpression, it can't be preceeded by the new keyword
|
||||||
|
template: syntax/invalid
|
||||||
|
info: |
|
||||||
|
CallExpression:
|
||||||
|
ImportCall
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression[+In, ?Yield] )
|
||||||
|
---*/
|
||||||
|
|
||||||
|
//- import
|
||||||
|
new import('')
|
Loading…
x
Reference in New Issue
Block a user