Chromium Code Reviews| 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..5b5e4a75034792d27bb7c2acc0871d7241f794f7 |
| --- /dev/null |
| +++ b/test/mjsunit/harmony/symbol-async-iterator.js |
| @@ -0,0 +1,14 @@ |
| +// Copyright 2017 the V8 project authors. All rights reserved. |
|
Dan Ehrenberg
2017/01/19 21:55:25
Would it work to write this as a test262 test inst
caitp
2017/01/19 21:58:38
I mentioned this offline, but:
I believe this tes
|
| +// 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); |