ref: bc51de87ef59dee31e37d1e81de7886a6e54bf41
parent: 4a7ffbf2ed517f7d8b996875dc4753444b1e05d2
author: Tor Andersson <tor.andersson@artifex.com>
date: Mon Nov 17 07:21:04 EST 2014
Use of try/catch must disqualify a function from being lightweight.
--- a/jscompile.c
+++ b/jscompile.c
@@ -1110,6 +1110,10 @@
F->lightweight = 0;
}
+ if (node->type == STM_TRY && node->c) {
+ F->lightweight = 0;
+ }
+
if (node->type == EXP_IDENTIFIER) {
if (!strcmp(node->string, "arguments")) {
F->lightweight = 0;