Win8_486977_BranchStrictEqual.js 774 B

12345678910111213141516
  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. // Win8 bug 486977
  6. (function () {
  7. var a = [[1,2,3],[4,5,6]];
  8. var b = [[1,2,3],[4,5,6]];
  9. var testName = "a.length === b.length";
  10. if (a.length === b.length) WScript.Echo(testName, ": True"); else WScript.Echo(testName, ": False");
  11. var testName = "a.length !== b.length";
  12. if (a.length !== b.length) WScript.Echo(testName, ": True"); else WScript.Echo(testName, ": False");
  13. })();