bug1.js 645 B

12345678910111213141516171819
  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. for (var i = 0; i < 3; i++) {
  6. Object.prototype['fireEvent'] = function () {
  7. return this;
  8. };
  9. var window = function () {
  10. };
  11. (function () {
  12. if (window.fireEvent()) {
  13. +window;
  14. }
  15. })();
  16. }
  17. print('pass');