1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
7 Object.defineProperties - 'O' is a String object which implements
8 its own [[GetOwnProperty]] method to get 'P' (8.12.9 step 1 )
9 includes: [propertyHelper.js]
12 var str = new String();
14 Object.defineProperty(str, "prop", {
20 Object.defineProperties(str, {
26 throw new Test262Error("Expected an exception.");
28 verifyEqualTo(str, "prop", 11);
30 verifyNotWritable(str, "prop");
32 verifyNotEnumerable(str, "prop");
34 verifyNotConfigurable(str, "prop");
36 if (!(e instanceof TypeError)) {
37 throw new Test262Error("Expected TypeError, got " + e);