blob: 594310cbe3b9e5d78a9052ab7f834f30f4d4d342 [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.
//-------------------------------------------------------------------------------------------------------
var glob = this;
function testthis() {
"use strict";
function foo() {
var globaObject = glob;
var indirectEval = eval;
indirectEval('function bar() { return "blah blah"; }');
var desc = Object.getOwnPropertyDescriptor(globaObject, 'bar');
if(!desc.configurable) {
print("Failed - function should be configurable");
}
delete globaObject['bar'];
}
foo();
}
testthis();
console.log("Pass");