blob: 04d6293f2d79f138cb12c3a20b4828cc082c0d2a [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.
//-------------------------------------------------------------------------------------------------------
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));