2016-09-06 22:49:51 +02:00
|
|
|
// 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.
|
|
|
|
|
2022-09-21 13:28:42 +02:00
|
|
|
// Flags: --always-turbofan
|
2016-09-06 22:49:51 +02:00
|
|
|
|
2016-12-23 16:30:57 +01:00
|
|
|
x = "";
|
2016-09-06 22:49:51 +02:00
|
|
|
|
2016-12-23 16:30:57 +01:00
|
|
|
function f () {
|
|
|
|
function g() {
|
2016-09-06 22:49:51 +02:00
|
|
|
try {
|
2016-12-23 16:30:57 +01:00
|
|
|
eval('');
|
|
|
|
return x;
|
2016-09-06 22:49:51 +02:00
|
|
|
} catch(e) {
|
|
|
|
}
|
|
|
|
}
|
2016-12-23 16:30:57 +01:00
|
|
|
return g();
|
2016-09-06 22:49:51 +02:00
|
|
|
}
|
2016-12-23 16:30:57 +01:00
|
|
|
|
|
|
|
f();
|