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.

strict mode var

+4 -4
+1 -1
maidfile.toml
··· 7 7 script = "meson clean" 8 8 9 9 [tasks.setup] 10 - script = "bash -c 'CC=/opt/homebrew/opt/llvm/bin/clang meson setup build --wipe -Dc_args=-DNO_EXECUTE_PERMISSION'" 10 + script = "bash -c 'CC=\"ccache /opt/homebrew/opt/llvm/bin/clang\" meson setup build --wipe -Dc_args=-DNO_EXECUTE_PERMISSION'" 11 11 12 12 [tasks.run] 13 13 script = ["maid build -q", "./build/ant %{arg.1}"]
+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.8') 77 + version_conf.set('ANT_VERSION', '0.0.8.9') 78 78 version_conf.set('ANT_GIT_HASH', git_hash) 79 79 version_conf.set('ANT_BUILD_DATE', build_date) 80 80
+2 -2
src/ant.c
··· 5360 5360 5361 5361 if (next(js) == TOK_LET || next(js) == TOK_CONST || next(js) == TOK_VAR) { 5362 5362 if (js->tok == TOK_VAR) { 5363 - if (!js->var_warning_shown) { 5363 + if ((js->flags & F_STRICT) && !js->var_warning_shown) { 5364 5364 fprintf(stderr, "Warning: 'var' is deprecated, use 'let' or 'const' instead\n"); 5365 5365 js->var_warning_shown = true; 5366 5366 } ··· 6768 6768 } 6769 6769 6770 6770 static void js_var(struct js *js, jsval_t *res) { 6771 - if (!js->var_warning_shown) { 6771 + if ((js->flags & F_STRICT) && !js->var_warning_shown) { 6772 6772 fprintf(stderr, "Warning: 'var' is deprecated, use 'let' or 'const' instead\n"); 6773 6773 js->var_warning_shown = true; 6774 6774 }