From 9477efe97032f15438b51bf01e2958cc76c554be Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Mon, 13 Apr 2020 19:50:58 +0200 Subject: LibJS: Handle HTML-style comments --- Libraries/LibJS/Tests/comments-basic.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Libraries/LibJS/Tests/comments-basic.js (limited to 'Libraries/LibJS/Tests') 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++; + + assert(i === 1); + + console.log('PASS'); +} catch (e) { + console.log('FAIL: ' + e); +} + -- cgit v1.2.3