summaryrefslogtreecommitdiff
path: root/testprogs/ejs
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/ejs')
-rw-r--r--testprogs/ejs/bugs.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/testprogs/ejs/bugs.js b/testprogs/ejs/bugs.js
index 4d66a475df..0c1cecb486 100644
--- a/testprogs/ejs/bugs.js
+++ b/testprogs/ejs/bugs.js
@@ -128,6 +128,22 @@ function reservedbug()
}
+/****************************************
+demo incorrect handling of boolean functions
+status: SUBMITTED
+*****************************************/
+function no()
+{
+ return false;
+}
+
+function boolbug()
+{
+ assert(false == no());
+ assert(!no());
+}
+
+
/* run the tests */
arraybug();
argsbug("one", "two", "three");
@@ -135,4 +151,5 @@ recursebug();
exprbug();
fnbug(callback);
reservedbug();
+boolbug();
objbug();