first commit
Some checks failed
Types tests / Test (lts/*) (push) Has been cancelled
Lint / Lint (lts/*) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CI / Test (20) (push) Has been cancelled
CI / Test (22) (push) Has been cancelled
CI / Test (24) (push) Has been cancelled

This commit is contained in:
2025-10-03 22:20:19 +08:00
commit 44db9807a1
2172 changed files with 526822 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
'use strict';
var i = 0;
while(i-->0) {
}

View File

@@ -0,0 +1,6 @@
'use strict';
//#if TRUE
var i = 0;
while(i-->0) {
}
//#endif

View File

@@ -0,0 +1,5 @@
/* Comment here... */
div {
margin: 0;
padding: 0;
}

View File

@@ -0,0 +1,7 @@
/* Comment here... */
/*#if TRUE*/
/*div {*/
/* margin: 0;*/
/*padding: 0;*/
/*}*/
/*#endif*/

View File

@@ -0,0 +1 @@
//Error: Found #elif without matching #if at __filename:2

4
external/builder/fixtures/elif.js vendored Normal file
View File

@@ -0,0 +1,4 @@
'use strict';
//#elif TRUE
var a;
//#endif

View File

@@ -0,0 +1 @@
//Error: Found #else without matching #if at __filename:2

3
external/builder/fixtures/else.js vendored Normal file
View File

@@ -0,0 +1,3 @@
'use strict';
//#else
//#endif

View File

@@ -0,0 +1 @@
//Error: Found #error "Some Error" at __filename:3

View File

@@ -0,0 +1,2 @@
'use strict';
var a;

View File

@@ -0,0 +1,5 @@
'use strict';
//#if FALSE
//#error "Some Error"
//#endif
var a;

5
external/builder/fixtures/error.js vendored Normal file
View File

@@ -0,0 +1,5 @@
'use strict';
//#if TRUE
//#error "Some Error"
//#endif
var b;

View File

@@ -0,0 +1 @@
prefixtruesuffix

1
external/builder/fixtures/expand.html vendored Normal file
View File

@@ -0,0 +1 @@
<!--#expand prefix__TRUE__suffix-->

View File

@@ -0,0 +1 @@
//Error: No JavaScript expression given at __filename:2

6
external/builder/fixtures/if-empty.js vendored Normal file
View File

@@ -0,0 +1,6 @@
'use strict';
//#if
var a;
//#else
var b;
//#endif

View File

@@ -0,0 +1,2 @@
'use strict';
var c;

View File

@@ -0,0 +1,8 @@
'use strict';
//#if FALSE
var a;
//#elif FALSE
var b;
//#else
var c;
//#endif

View File

@@ -0,0 +1,2 @@
'use strict';
var b;

View File

@@ -0,0 +1,8 @@
'use strict';
//#if FALSE
var a;
//#elif TRUE
var b;
//#else
var c;
//#endif

View File

@@ -0,0 +1,2 @@
'use strict';
var b;

View File

@@ -0,0 +1,6 @@
'use strict';
//#if FALSE
var a;
//#else
var b;
//#endif

View File

@@ -0,0 +1,3 @@
div {
margin: 0;
}

View File

@@ -0,0 +1,6 @@
'use strict';
var a;
var b;
var d;

14
external/builder/fixtures/if-nested.css vendored Normal file
View File

@@ -0,0 +1,14 @@
/*#if TRUE*/
div {
margin: 0;
/*#if FALSE*/
padding: 0;
/*#endif*/
}
/*#endif*/
/*#if FALSE*/
p {
margin: 0;
}
/*#endif*/

19
external/builder/fixtures/if-nested.js vendored Normal file
View File

@@ -0,0 +1,19 @@
'use strict';
//#if TRUE
var a;
//#if TRUE
var b;
//#else
var c;
//#endif
var d;
//#else
var e;
//#if TRUE
var f;
//#endif
var g;
//#endif

View File

@@ -0,0 +1,2 @@
'use strict';
var a;

View File

@@ -0,0 +1,8 @@
'use strict';
//#if TRUE
var a;
//#elif FALSE
var b;
//#else
var c;
//#endif

View File

@@ -0,0 +1,2 @@
'use strict';
var a;

View File

@@ -0,0 +1,6 @@
'use strict';
//#if TRUE
var a;
//#else
var b;
//#endif

View File

@@ -0,0 +1 @@
//Error: Missing #endif in preprocessor for __filename

View File

@@ -0,0 +1,3 @@
'use strict';
//#if TRUE
var a;

View File

@@ -0,0 +1,5 @@
<script>
'use strict';
var a;
</script>

View File

@@ -0,0 +1 @@
//Error: Failed to include "some file that does not exist" at __filename:2

View File

@@ -0,0 +1,2 @@
<!-- Non-existent file -->
<!--#include some file that does not exist-->

View File

@@ -0,0 +1,5 @@
<script>
<!--#if TRUE-->
<!--#include if-true-else.js-->
<!--#endif-->
</script>

View File

@@ -0,0 +1,4 @@
'use strict';
//var a;
var b;
var c;

View File

@@ -0,0 +1,6 @@
'use strict';
//#if TRUE
////var a;
//var b;
var c;
//#endif

View File

@@ -0,0 +1,2 @@
//Error: Could not evaluate "notdefined" at __filename:2
//ReferenceError: notdefined is not defined

View File

@@ -0,0 +1,6 @@
'use strict';
//#if notdefined
var a;
//#else
var b;
//#endif

View File

@@ -0,0 +1 @@
//Error: Found #endif without #if at __filename:4

View File

@@ -0,0 +1,5 @@
'use strict';
//#ifdef TRUE
//ifdef should not be recognized
//#endif
var a;