mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
jscript: Added tests of unary '+' on not existent property.
This commit is contained in:
parent
3d818c3aa8
commit
dcca57fd87
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue