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;