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.

prevent re-exporting from non-object module

+4
+4
src/ant.c
··· 19596 19596 js->consumed = 1; next(js); js->consumed = 0; 19597 19597 if (is_err(ns)) return ns; 19598 19598 19599 + if (vtype(ns) != T_OBJ) { 19600 + return js_mkerr_typed(js, JS_ERR_SYNTAX, "Cannot re-export from non-object module"); 19601 + } 19602 + 19599 19603 setprop(js, js->scope, js_mkstr(js, namespace_name, namespace_len), ns); 19600 19604 return js_mkundef(); 19601 19605 }