fgpeepsbug.js 668 B

123456789101112131415161718192021222324
  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(d) {
  8. d = d|0;
  9. d=(d|0)==1;
  10. if(d){
  11. d = 10;
  12. }
  13. return d|0;
  14. }
  15. return {
  16. f:f
  17. }
  18. }
  19. var asmModule = AsmModule();
  20. print(asmModule.f(2));
  21. print(asmModule.f(2));