Chromium Code Reviews| Index: test/mjsunit/regress/regress-5896.js |
| diff --git a/test/mjsunit/regress/regress-5896.js b/test/mjsunit/regress/regress-5896.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e1145d2a8c8e9a82de8bdfd5b1e3ec69171a3888 |
| --- /dev/null |
| +++ b/test/mjsunit/regress/regress-5896.js |
| @@ -0,0 +1,17 @@ |
| +// 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: --allow-natives-syntax |
| + |
| +async function foo() { |
| + try { |
| + return 1; |
| + } finally { |
| + return Promise.resolve().then(() => { return 2; }); |
| + } |
| +} |
| + |
| +foo() |
| + .then(value => { found = value; assertEquals(2, value) }) |
| + .catch((e) => { %AbortJS(''+e); }); |
|
neis
2017/02/08 10:28:41
How about also adding Caitlin's tests from https:/
gsathya
2017/02/09 00:55:45
It looks like caitlin is working on upstreaming th
|