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.

loose mode

+29 -2
+1 -1
meson.build
··· 74 74 build_date = run_command('date', '+%Y-%m-%d', check: true).stdout().strip() 75 75 76 76 version_conf = configuration_data() 77 - version_conf.set('ANT_VERSION', '0.0.8.9') 77 + version_conf.set('ANT_VERSION', '0.0.8.10') 78 78 version_conf.set('ANT_GIT_HASH', git_hash) 79 79 version_conf.set('ANT_BUILD_DATE', build_date) 80 80
+10 -1
src/ant.c
··· 2600 2600 return js_mkerr(js, "ReferenceError: '%.*s' is not defined", (int) len, buf); 2601 2601 } 2602 2602 2603 - return js_mkerr(js, "'%.*s' not found", (int) len, buf); 2603 + jsval_t global_scope = js->scope; 2604 + while (vdata(upper(js, global_scope)) != 0) { 2605 + global_scope = upper(js, global_scope); 2606 + } 2607 + 2608 + jsval_t key = js_mkstr(js, buf, len); 2609 + if (is_err(key)) return key; 2610 + 2611 + jsval_t undef = js_mkundef(); 2612 + return setprop(js, global_scope, key, undef); 2604 2613 } 2605 2614 2606 2615 static jsval_t resolveprop(struct js *js, jsval_t v) {
+18
stupid.js
··· 1 + var a; 2 + 3 + with (Math) a = PI; 4 + 5 + var b = { 6 + get_member: function () { 7 + return this.member; 8 + }, 9 + member: 41 10 + }; 11 + 12 + with (b) { 13 + let a = get_member(); //<--- a is local for this block 14 + var c = a + 1; 15 + } 16 + 17 + result = a == Math.PI && c == 42; 18 + console.log(result);