0
0

🎨 move "use strict"; to top of include

This commit is contained in:
DrMaxNix 2022-09-29 19:25:35 +02:00
parent 195af72d01
commit aad9c5bdbb
5 changed files with 22 additions and 23 deletions

View File

@ -54,7 +54,9 @@
span.line.stderr-error { color: var(--onedark-red); }
</style>
<script type="text/javascript"><?php
<script type="text/javascript">
"use strict";
<?php
foreach(scandir("../src/helper") as $one_file){
if(is_file("../src/helper/" . $one_file)){
require("../src/helper/" . $one_file);
@ -75,7 +77,8 @@
echo("\n");
}
}
?></script>
?>
</script>
<script type="text/javascript">
let juice_program = <?php echo(json_encode(file_get_contents("juice-program.jce"))); ?>;

View File

@ -1,4 +1,3 @@
"use strict";
class Juicescript_helper_enum {
constructor(...keys){
keys.forEach((key, i) => {

View File

@ -1,4 +1,3 @@
"use strict";
class Juicescript_io {
/*
CONSTRUCTOR: Return new juicescript io adapter with CALLBACKs

View File

@ -1,4 +1,3 @@
"use strict";
class Juicescript_lexer {
/*
CONSTRUCTOR: Return new juicescript lexer for SOURCE with OPTIONS

View File

@ -1,4 +1,3 @@
"use strict";
class Juicescript {
// TOKEN TYPES //
static token_type = new Juicescript_helper_enum(