summaryrefslogtreecommitdiff
path: root/src/dstr-assignment-for-await/obj-id-identifier-resolution-middle.case
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2017-05-31 16:04:56 -0400
committerRick Waldron <waldron.rick@gmail.com>2017-05-31 16:04:56 -0400
commit3bff862ca7f54e2bad646b8bfac8028873594c3b (patch)
treeaf57528a690ec1108026cb3333e8f1635104ebce /src/dstr-assignment-for-await/obj-id-identifier-resolution-middle.case
parent60a6a7c81e99d83faf4b14be3f264b7a94e6882f (diff)
downloadqtdeclarative-testsuites-3bff862ca7f54e2bad646b8bfac8028873594c3b.tar.gz
src/dstr-assignment-async-iteration -> src/dstr-assignment-for-await
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Diffstat (limited to 'src/dstr-assignment-for-await/obj-id-identifier-resolution-middle.case')
-rw-r--r--src/dstr-assignment-for-await/obj-id-identifier-resolution-middle.case22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/dstr-assignment-for-await/obj-id-identifier-resolution-middle.case b/src/dstr-assignment-for-await/obj-id-identifier-resolution-middle.case
new file mode 100644
index 000000000..e18d98745
--- /dev/null
+++ b/src/dstr-assignment-for-await/obj-id-identifier-resolution-middle.case
@@ -0,0 +1,22 @@
+// Copyright (C) 2017 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+desc: >
+ Evaluation of DestructuringAssignmentTarget (within many)
+template: default
+es6id: 12.14.5.4
+---*/
+
+//- setup
+let x = null;
+let w, y;
+//- elems
+{ w, x, y }
+//- vals
+{ x: 5 }
+//- body
+assert.sameValue(x, 5);
+//- teardown
+promise
+ .then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE)
+ .then($DONE, $DONE);