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.

remove unused FUNC_NAME

+9 -15
+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.58') 82 + version_conf.set('ANT_VERSION', '0.2.2.59') 83 83 version_conf.set('ANT_GIT_HASH', git_hash) 84 84 version_conf.set('ANT_BUILD_DATE', build_date) 85 85
+8 -14
src/ant.c
··· 793 793 794 794 static jsval_t call_js(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope); 795 795 static jsval_t call_js_internal(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *bound_args, int bound_argc); 796 - static jsval_t call_js_internal_nfe(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *bound_args, int bound_argc, jsval_t func_name, jsval_t func_val); 796 + static jsval_t call_js_internal_nfe(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *bound_args, int bound_argc, jsval_t func_val); 797 797 798 798 static jsval_t call_js_with_args(struct js *js, jsval_t fn, jsval_t *args, int nargs); 799 799 static jsval_t call_js_code_with_args(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *args, int nargs); 800 - static jsval_t call_js_code_with_args_nfe(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *args, int nargs, jsval_t func_name, jsval_t func_val); 800 + static jsval_t call_js_code_with_args_nfe(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *args, int nargs, jsval_t func_val); 801 801 802 802 static inline bool push_this(jsval_t this_value); 803 803 static inline jsval_t pop_this(void); ··· 5126 5126 } 5127 5127 5128 5128 static jsval_t call_js_internal(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *bound_args, int bound_argc) { 5129 - return call_js_internal_nfe(js, fn, fnlen, closure_scope, bound_args, bound_argc, js_mkundef(), js_mkundef()); 5129 + return call_js_internal_nfe(js, fn, fnlen, closure_scope, bound_args, bound_argc, js_mkundef()); 5130 5130 } 5131 5131 5132 - static jsval_t call_js_internal_nfe(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *bound_args, int bound_argc, jsval_t func_name, jsval_t func_val) { 5132 + static jsval_t call_js_internal_nfe(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *bound_args, int bound_argc, jsval_t func_val) { 5133 5133 jsval_t saved_scope = js->scope; 5134 5134 jsval_t saved_this_val = js->this_val; 5135 5135 jsval_t target_this = peek_this(); ··· 5374 5374 push_this(bound_this); 5375 5375 } 5376 5376 5377 - jsval_t func_name = js_mkundef(); 5378 - jsoff_t name_off = lkp(js, func_obj, "name", 4); 5379 - if (name_off != 0) { 5380 - func_name = resolveprop(js, mkval(T_PROP, name_off)); 5381 - } 5382 - 5383 - jsval_t result = call_js_code_with_args_nfe(js, fn, fnlen, closure_scope, args, nargs, func_name, func); 5377 + jsval_t result = call_js_code_with_args_nfe(js, fn, fnlen, closure_scope, args, nargs, func); 5384 5378 5385 5379 if (combined_args) ANT_GC_FREE(combined_args); 5386 5380 return result; 5387 5381 } 5388 5382 5389 5383 static jsval_t call_js_code_with_args(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *args, int nargs) { 5390 - return call_js_code_with_args_nfe(js, fn, fnlen, closure_scope, args, nargs, js_mkundef(), js_mkundef()); 5384 + return call_js_code_with_args_nfe(js, fn, fnlen, closure_scope, args, nargs, js_mkundef()); 5391 5385 } 5392 5386 5393 - static jsval_t call_js_code_with_args_nfe(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *args, int nargs, jsval_t func_name, jsval_t func_val) { 5387 + static jsval_t call_js_code_with_args_nfe(struct js *js, const char *fn, jsoff_t fnlen, jsval_t closure_scope, jsval_t *args, int nargs, jsval_t func_val) { 5394 5388 jsoff_t parent_scope_offset; 5395 5389 if (vtype(closure_scope) == T_OBJ) { 5396 5390 parent_scope_offset = (jsoff_t) vdata(closure_scope); ··· 5782 5776 res = start_async_in_coroutine(js, code_str, fnlen, closure_scope, bound_args, bound_argc); 5783 5777 pop_call_frame(); 5784 5778 } else { 5785 - res = call_js_internal_nfe(js, code_str, fnlen, closure_scope, bound_args, bound_argc, nfe_name_val, func); 5779 + res = call_js_internal_nfe(js, code_str, fnlen, closure_scope, bound_args, bound_argc, func); 5786 5780 pop_call_frame(); 5787 5781 } 5788 5782