diff options
Diffstat (limited to 'Libraries/LibJS/Tests')
-rw-r--r-- | Libraries/LibJS/Tests/comments-basic.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Libraries/LibJS/Tests/comments-basic.js b/Libraries/LibJS/Tests/comments-basic.js new file mode 100644 index 0000000000..c819f61545 --- /dev/null +++ b/Libraries/LibJS/Tests/comments-basic.js @@ -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); +} + |