jscript: Added tests of unary '+' on not existent property.

This commit is contained in:
Jacek Caban 2011-11-22 16:31:29 +01:00 committed by Alexandre Julliard
parent 3d818c3aa8
commit dcca57fd87

View File

@ -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;