-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathOS_2733280.js
36 lines (35 loc) · 1.02 KB
/
OS_2733280.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.
//-------------------------------------------------------------------------------------------------------
function test0() {
function leaf() {
}
var obj0 = {};
var obj1 = {};
var func3 = function (...args) {
};
var func4 = function () {
arguments;
};
obj0.method0 = func3;
obj0.method00 = func4;
protoObj0 = Object(obj0);
var v0 = {
v1: function () {
return function bar() {
delete protoObj0.prop0;
this.method0.apply(obj1, arguments);
this.method00.apply(obj1, arguments);
};
}
};
obj0.method1 = v0.v1();
var uniqobj4 = [obj0];
var uniqobj5 = uniqobj4[0];
uniqobj5.method0((protoObj0.method1(leaf)));
}
test0();
test0();
test0();
WScript.Echo("PASS");