blob: cc9f621dcc6557d74b2cd7198bfb68a848873bdb [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.
//-------------------------------------------------------------------------------------------------------
"use strict";
function write(v) { WScript.Echo(v + ""); }
function f() {
write("this : " + this);
write("typeof(this) : " + typeof (this));
eval('write("this : " + this);');
eval('write("typeof(this) : " + typeof (this));');
}
f();
f.call();
f.call(undefined);
f.call(null);
f.call(this);
f.call(10);
f.call(new Number(10));