blob: 5e5e73cad27828afd6fd0e17f907a02910e24327 [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 f() {
var obj0 = {};
obj1 = Object.create(obj0);
var sc = WScript.LoadScript('function setUp(obj0, obj1) { obj1.foo0 = 1; Object.setPrototypeOf(obj0, {}); Object.defineProperty(Object.getPrototypeOf(obj0), "foo1", {writable: false, value: "bar"}); }', 'samethread');
sc.setUp(obj0, obj1);
obj1.foo2 = 'bar';
}
f();
WScript.Echo('Pass');