2
0

wrappedobj.js 672 B

1234567891011121314151617181920
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. function check(cond, test)
  6. {
  7. if(!cond)
  8. {
  9. WScript.Echo("Failed test: " + test);
  10. }
  11. }
  12. var f = new Boolean(false);
  13. check( (f==false), "f equals false");
  14. check( (f!==false), "f strict-not-equals false");
  15. check( (!f==false), "!f equals false");
  16. WScript.Echo("done");