From dcca57fd87d84bef6f71a809d771d73c3719711f Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 22 Nov 2011 16:31:29 +0100 Subject: [PATCH] jscript: Added tests of unary '+' on not existent property. --- dlls/jscript/tests/lang.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index 7cd20dd9163..c85907cb8d6 100644 --- a/dlls/jscript/tests/lang.js +++ b/dlls/jscript/tests/lang.js @@ -216,6 +216,10 @@ tmp = new Object(); ok((~tmp.nonexistent) === -1, "!tmp.nonexistent = " + ~tmp.nonexistent); ok(!("nonexistent" in tmp), "nonexistent is in tmp after '~' expression") +tmp = new Object(); +ok(isNaN(tmp.nonexistent), "!tmp.nonexistent = " + (+tmp.nonexistent)); +ok(!("nonexistent" in tmp), "nonexistent is in tmp after '+' expression") + tmp = 0; if(true) tmp = 1; -- 2.11.4.GIT