Add test case for new call expression invalid syntax

This commit is contained in:
Leo Balter 2018-10-24 16:10:37 -04:00 committed by Rick Waldron
parent a347df3aae
commit 65df2bd23c
1 changed files with 15 additions and 0 deletions

View 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('')