OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Flags: --harmony-async-await |
| 6 |
| 7 assertEqualsAsync("[1,2,3]", () => (function() { |
| 8 return (async () => JSON.stringify([...arguments]))(); |
| 9 })(1, 2, 3)); |
| 10 |
| 11 assertEqualsAsync("[4,5,6]", |
| 12 () => (function() { |
| 13 return (async () => { |
| 14 return JSON.stringify([...await arguments]) })(); |
| 15 })(4, 5, 6)); |
OLD | NEW |