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:
Zoltan Herczeg
2018-04-11 13:59:13 +02:00
committed by GitHub
parent 5c0c21b26a
commit e91471727f
12 changed files with 183 additions and 66 deletions
+19 -3
View File
@@ -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";
}