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 const declaration initializer check

+1 -1
+1 -1
src/ant.c
··· 10099 10099 js->consumed = 1; 10100 10100 v = js_expr(js); 10101 10101 if (is_err(v)) return v; 10102 - } 10102 + } else if (is_const) return js_mkerr_typed(js, JS_ERR_SYNTAX, "Missing initializer in const declaration"); 10103 10103 if (exe) { 10104 10104 char decoded_name[256]; 10105 10105 size_t decoded_len = decode_ident_escapes(name, nlen, decoded_name, sizeof(decoded_name));