diff options
author | Brian Terlson <brian.terlson@microsoft.com> | 2016-01-26 14:31:32 -0800 |
---|---|---|
committer | Leonardo Balter <leonardo.balter@gmail.com> | 2016-07-28 15:11:28 -0700 |
commit | dbf251586e280cebc716b96f1a8a089ffa63a54f (patch) | |
tree | fa5ea329b6bf9f3236287849a3c649e5189d1aca /test/language/expressions/async-function/early-errors-expression-NSPL-with-USD.js | |
parent | b785fdf9426fcfc7395049015b0fb7515fea9290 (diff) | |
download | qtdeclarative-testsuites-dbf251586e280cebc716b96f1a8a089ffa63a54f.tar.gz |
Add tests for async functions
Closes #479
Diffstat (limited to 'test/language/expressions/async-function/early-errors-expression-NSPL-with-USD.js')
-rw-r--r-- | test/language/expressions/async-function/early-errors-expression-NSPL-with-USD.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/language/expressions/async-function/early-errors-expression-NSPL-with-USD.js b/test/language/expressions/async-function/early-errors-expression-NSPL-with-USD.js new file mode 100644 index 000000000..e52af62cf --- /dev/null +++ b/test/language/expressions/async-function/early-errors-expression-NSPL-with-USD.js @@ -0,0 +1,12 @@ +// Copyright 2016 Microsoft, Inc. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +author: Brian Terlson <brian.terlson@microsoft.com> +esid: pending +description: > + It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is *true* and IsSimpleParameterList of ArrowParameters is *false*. +negative: SyntaxError +---*/ + +(async function (x = 1) {"use strict"}) |