isarrbug.js 511 B

12345678910111213
  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 foo(){
  6. return Array.isArray(1);
  7. };
  8. let failed = foo();
  9. failed |= foo();
  10. failed |= foo();
  11. failed ? print("Fail") : print("Pass");