bug_os17542375.js 752 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. // With pageheap:2 we should not hit an AV
  6. function foo() {
  7. var r = {};
  8. var b = {};
  9. var a = {};
  10. a.$ = r;
  11. function foo1() {
  12. }
  13. function foo2() {
  14. }
  15. return r.noConflict = function(b) {
  16. return a.$ === r && (a.$ = Wb), b && a.jQuery === r && (a.jQuery = Vb), r
  17. }, b || (a.jQuery = a.$ = r), r
  18. }
  19. foo();
  20. console.log('pass');