bug9883547.js 666 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 AsmModule() {
  6. "use asm";
  7. function f() {
  8. var a = 0, b = 0.0;
  9. while((b) == 0.0) {
  10. b = +(a>>>0); // First use of a in the loop as a uint32
  11. a = 5|0; // def of a in the loop as an int32
  12. }
  13. return +b;
  14. }
  15. return f;
  16. }
  17. var f = AsmModule();
  18. console.log("PASSED");