File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
+
6
+ // With pageheap:2 we should not hit an AV
7
+
8
+ function foo ( ) {
9
+ var r = { } ;
10
+ var b = { } ;
11
+ var a = { } ;
12
+ a . $ = r ;
13
+
14
+ function foo1 ( ) {
15
+ }
16
+ function foo2 ( ) {
17
+ }
18
+ return r . noConflict = function ( b ) {
19
+ return a . $ === r && ( a . $ = Wb ) , b && a . jQuery === r && ( a . jQuery = Vb ) , r
20
+ } , b || ( a . jQuery = a . $ = r ) , r
21
+ }
22
+
23
+ foo ( ) ;
24
+ console . log ( 'pass' ) ;
Original file line number Diff line number Diff line change 414
414
<tags >exclude_test,exclude_jshost,exclude_dynapogo</tags >
415
415
</default >
416
416
</test >
417
+ <test >
418
+ <default >
419
+ <files >bug_os17542375.js</files >
420
+ <compile-flags >-UseParserStateCache -ParserStateCache -Force:DeferParse -pageheap:2</compile-flags >
421
+ <tags >exclude_test,exclude_jshost</tags >
422
+ </default >
423
+ </test >
417
424
</regress-exe >
You can’t perform that action at this time.
0 commit comments