blob: 144222525a7a97ad69e7ada6fa5fd5cd861ed7ad [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
// -nonative
// -maxsimplejitruncount:2 -maxinterpretcount:1 -forcejitloopbody -off:bailonnoprofile
function test() {
var count = 0;
function leaf() {
}
var obj0 = {};
var func1 = function () {
for (var _strvar0 in ui8) {
ary.unshift(this.prop0 + this.prop0);
}
};
var ary = Array();
var ui8 = new Uint8Array(1);
var proxyHandler = {};
proxyHandler['get'] = function () {
count++;
};
obj0 = new Proxy(obj0, proxyHandler);
({ prop1: !func1.call(obj0, leaf, '!') });
if (count != 2)
print("FAIL");
else
print("PASS");
}
test();