Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1074)

Unified Diff: test/mjsunit/harmony/symbol-async-iterator.js

Issue 2645923003: [async-iteration] expose Symbol.asyncIterator behind flag --harmony-async-iteration (Closed)
Patch Set: for landing Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap-symbols.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/symbol-async-iterator.js
diff --git a/test/mjsunit/harmony/symbol-async-iterator.js b/test/mjsunit/harmony/symbol-async-iterator.js
new file mode 100644
index 0000000000000000000000000000000000000000..8a92add6354b1e1e29d42729a80b9122bc024188
--- /dev/null
+++ b/test/mjsunit/harmony/symbol-async-iterator.js
@@ -0,0 +1,14 @@
+// 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.
+
+// Flags: --harmony-async-iteration
+
+assertTrue(Symbol.hasOwnProperty('asyncIterator'));
+assertEquals('symbol', typeof Symbol.asyncIterator);
+assertInstanceof(Object(Symbol.asyncIterator), Symbol);
+
+let desc = Object.getOwnPropertyDescriptor(Symbol, 'asyncIterator');
+assertFalse(desc.writable);
+assertFalse(desc.enumerable);
+assertFalse(desc.configurable);
« no previous file with comments | « src/heap-symbols.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698