evalbug.js 549 B

123456789101112131415161718
  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 asm() {
  6. "use asm"
  7. function f(a, b) {
  8. a = a|0;
  9. b = b|0;
  10. return a|0;
  11. }
  12. return f;
  13. }
  14. eval = asm();
  15. eval("some string");
  16. print("PASSED");