2015-05-05 13:48:55 -07:00
|
|
|
// 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.
|
|
|
|
|
2022-09-21 13:28:42 +02:00
|
|
|
// Flags: --turbo-filter=* --always-turbofan
|
2015-05-05 13:48:55 -07:00
|
|
|
|
|
|
|
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);
|