Support abort in the debugger. (#2273)
Aborts are not caught by catch/finally blocks, so it is possible to stop a script using the debugger. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -12,8 +12,24 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
function inevitable() {
|
||||
print("An error will be thrown.");
|
||||
function f() {
|
||||
return 32;
|
||||
}
|
||||
|
||||
inevitable();
|
||||
function g() {
|
||||
f();
|
||||
}
|
||||
|
||||
try {
|
||||
try {
|
||||
|
||||
while (true) {
|
||||
g();
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
var s = "Stop here";
|
||||
}
|
||||
} catch (e) {
|
||||
var s = "Stop here again";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user