summaryrefslogtreecommitdiff
path: root/deps/v8/test/message/object-binding-pattern-await-computed-name.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/message/object-binding-pattern-await-computed-name.js')
-rw-r--r--deps/v8/test/message/object-binding-pattern-await-computed-name.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/deps/v8/test/message/object-binding-pattern-await-computed-name.js b/deps/v8/test/message/object-binding-pattern-await-computed-name.js
new file mode 100644
index 0000000000..1b40d0d4a9
--- /dev/null
+++ b/deps/v8/test/message/object-binding-pattern-await-computed-name.js
@@ -0,0 +1,9 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+async function f() {
+ let { [await "a"]: a } = { a: 1 };
+ return a;
+}
+f();