Index: test/mjsunit/regress/regress-crbug-467531.js |
diff --git a/test/mjsunit/regress/regress-crbug-467531.js b/test/mjsunit/regress/regress-crbug-467531.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..73256c7acc747bebf076e0330ac30c204359239d |
--- /dev/null |
+++ b/test/mjsunit/regress/regress-crbug-467531.js |
@@ -0,0 +1,25 @@ |
+// Copyright 2015 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: --turbo-filter=* --always-opt |
+ |
+assertThrows(function() { |
+ "use strict"; |
+ try { |
+ x = ref_error; |
+ let x = 0; |
+ } catch (e) { |
+ throw e; |
+ } |
+}, ReferenceError); |
+ |
+assertThrows(function() { |
+ "use strict"; |
+ try { |
+ x = ref_error; |
+ let x = 0; |
+ } finally { |
+ // re-throw |
+ } |
+}, ReferenceError); |