diff --git a/src/dynamic-import/no-new-call-expression.case b/src/dynamic-import/no-new-call-expression.case new file mode 100644 index 0000000000..8b322fcea9 --- /dev/null +++ b/src/dynamic-import/no-new-call-expression.case @@ -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('')