LibJS: Handle HTML-style comments

This commit is contained in:
Stephan Unverwerth 2020-04-13 19:50:58 +02:00 committed by Andreas Kling
parent 9962db5bf8
commit 9477efe970
Notes: sideshowbarker 2024-07-19 07:36:43 +09:00
3 changed files with 63 additions and 16 deletions

View file

@ -0,0 +1,20 @@
try {
var i = 0;
// i++;
/* i++; */
/*
i++;
*/
<!-- i++; --> i++;
<!-- i++;
i++;
--> i++;
assert(i === 1);
console.log('PASS');
} catch (e) {
console.log('FAIL: ' + e);
}