mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 18:54:57 +00:00
LibJS: Handle HTML-style comments
This commit is contained in:
parent
9962db5bf8
commit
9477efe970
3 changed files with 63 additions and 16 deletions
20
Libraries/LibJS/Tests/comments-basic.js
Normal file
20
Libraries/LibJS/Tests/comments-basic.js
Normal 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);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue