diff options
Diffstat (limited to 'testprogs')
-rw-r--r-- | testprogs/ejs/bugs.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/testprogs/ejs/bugs.js b/testprogs/ejs/bugs.js index 3c8a4daab3..4d66a475df 100644 --- a/testprogs/ejs/bugs.js +++ b/testprogs/ejs/bugs.js @@ -73,7 +73,7 @@ function objbug() { /* demo a expression handling bug - status: SUBMITTED + status: FIXED */ function exprbug() { var a = new Array(10); @@ -118,10 +118,21 @@ function fnbug(c) assert(s == "testing"); } +/**************************************** +demo incorrect handling of reserved words in strings +status: SUBMITTED +*****************************************/ +function reservedbug() +{ + assert("funct" + "ion" == 'function'); +} + + /* run the tests */ arraybug(); argsbug("one", "two", "three"); recursebug(); exprbug(); fnbug(callback); +reservedbug(); objbug(); |