| // Copyright (c) 2012 Ecma International. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| ES5 Attributes - [[Set]] attribute is a function which has two |
| var setFunc = function (a, b) { |
| Object.defineProperty(obj, "prop", { |
| var desc = Object.getOwnPropertyDescriptor(obj, "prop"); |
| assert(obj.hasOwnProperty("prop"), 'obj.hasOwnProperty("prop") !== true'); |
| assert.sameValue(desc.set, setFunc, 'desc.set'); |
| assert.sameValue(firstArg, 100, 'firstArg'); |
| assert.sameValue(typeof secondArg, "undefined", 'typeof secondArg'); |