deferReparseBug.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. // OS 13988805: Assert Failure in JS:ParseableFunctionInfo
  6. try {
  7. f()
  8. } catch (
  9. e
  10. ) {}
  11. function f() {
  12. "use asm";
  13. Number.prototype.toString.apply(
  14. DataView.prototype.getUint16.apply(
  15. Object.freeze(
  16. URIError.prototype.name.apply(
  17. RegExp.prototype.global.apply(
  18. (
  19. function() {
  20. return (
  21. (
  22. new Intl.DateTimeFormat(
  23. (
  24. function(
  25. [] =
  26. (
  27. Date.prototype.setSeconds.apply(
  28. (
  29. i6 = (
  30. i1 =>
  31. String.prototype.sub.apply()
  32. )
  33. )
  34. )
  35. )
  36. ) {}
  37. )
  38. )
  39. )
  40. );
  41. }
  42. )
  43. )
  44. )
  45. )
  46. )
  47. )
  48. }
  49. WScript.Echo("PASS");