mirror of https://github.com/tc39/test262.git
Add test case for new call expression invalid syntax
This commit is contained in:
parent
a347df3aae
commit
65df2bd23c
|
@ -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…
Reference in New Issue