Chromium Code Reviews| 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: --expose-debug-as debug --harmony-async-await | |
| 6 | |
| 7 async function foo() {} | |
| 8 function bar() {} | |
| 9 | |
| 10 let fooMirror = debug.MakeMirror(foo); | |
| 11 assertTrue(fooMirror.isAsyncFunction()); | |
| 12 | |
| 13 let barMirror = debug.MakeMirror(bar); | |
| 14 assertFalse(barMirror.isAsyncFunction()); | |
| OLD | NEW |