Index: test/mjsunit/mirror-function-async.js |
diff --git a/test/mjsunit/mirror-function-async.js b/test/mjsunit/mirror-function-async.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..faf863cf1b03272dbe9b39553daa2ba77d42ce2d |
--- /dev/null |
+++ b/test/mjsunit/mirror-function-async.js |
@@ -0,0 +1,14 @@ |
+// Copyright 2016 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: --expose-debug-as debug --harmony-async-await |
+ |
+async function foo() {} |
+function bar() {} |
+ |
+let fooMirror = debug.MakeMirror(foo); |
+assertTrue(fooMirror.isAsyncFunction()); |
+ |
+let barMirror = debug.MakeMirror(bar); |
+assertFalse(barMirror.isAsyncFunction()); |