-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathpolyInliningBugs.js
36 lines (35 loc) · 1.13 KB
/
polyInliningBugs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
var __counter = 0;
function test0() {
__counter++;
var obj0 = {};
var obj1 = {};
var func1 = function () {
};
var func2 = function () {
};
obj0.method1 = func1;
obj1.method1 = func2;
protoObj0 = Object.create(obj0);
protoObj1 = Object.create(obj1);
obj0 = protoObj1;
var __loopvar3 = 0;
for (; __loopvar3 < 3; __loopvar3++) {
(function () {
for (var v2518 = 0; v2518 < arguments.length; ++v2518) {
var uniqobj5 = [
protoObj0,
obj0
];
uniqobj5[__counter % uniqobj5.length].method1();
}
}(1));
}
}
test0();
test0();
test0();
WScript.Echo("PASSED\n");