MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add thrown value to js_try function

+4 -2
+1 -1
meson.build
··· 79 79 build_date = run_command('date', '+%Y-%m-%d', check: true).stdout().strip() 80 80 81 81 version_conf = configuration_data() 82 - version_conf.set('ANT_VERSION', '0.2.2.11') 82 + version_conf.set('ANT_VERSION', '0.2.2.12') 83 83 version_conf.set('ANT_GIT_HASH', git_hash) 84 84 version_conf.set('ANT_BUILD_DATE', build_date) 85 85
+2
src/ant.c
··· 10086 10086 } else if (had_exception && !exception_handled) { 10087 10087 js->flags |= F_THROW; 10088 10088 strncpy(js->errmsg, saved_errmsg, sizeof(js->errmsg) - 1); 10089 + js->thrown_value = exception_value; 10089 10090 } else if (catch_returned) { 10090 10091 js->flags |= F_RETURN; 10091 10092 res = catch_return_value; ··· 10097 10098 } else if (had_exception && !exception_handled) { 10098 10099 js->flags |= F_THROW; 10099 10100 strncpy(js->errmsg, saved_errmsg, sizeof(js->errmsg) - 1); 10101 + js->thrown_value = exception_value; 10100 10102 res = mkval(T_ERR, 0); 10101 10103 } else if (catch_returned) { 10102 10104 js->flags |= F_RETURN;
+1 -1
tests/window.cjs
··· 1 - const window = this; 1 + const window = 5; 2 2 console.log(window);