Jacek Caban : jscript: Added tests of unary '+' on not existent property.
Module: wine Branch: master Commit: dcca57fd87d84bef6f71a809d771d73c3719711f URL: http://source.winehq.org/git/wine.git/?a=commit;h=dcca57fd87d84bef6f71a809d7... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Nov 22 16:31:29 2011 +0100 jscript: Added tests of unary '+' on not existent property. --- dlls/jscript/tests/lang.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index 7cd20dd..c85907c 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;
participants (1)
-
Alexandre Julliard