2
0

UnaryPos.js 678 B

1234567891011121314151617181920212223242526272829
  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 bd() {
  8. return +0;
  9. }
  10. function foo()
  11. {
  12. var y = 5.5;
  13. y = +bd();
  14. return +y;
  15. }
  16. return foo;
  17. }
  18. var asmModule = AsmModule();
  19. if(asmModule() == 0)
  20. {
  21. WScript.Echo("pass");
  22. }