15.2.3.4-4-40.js (543B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 es5id: 15.2.3.4-4-40 6 description: > 7 Object.getOwnPropertyNames - inherited data property of String 8 object 'O' is not pushed into the returned array 9 ---*/ 10 11 var str = new String("abc"); 12 13 String.prototype.protoProperty = "protoString"; 14 15 var result = Object.getOwnPropertyNames(str); 16 17 for (var p in result) { 18 assert.notSameValue(result[p], "protoProperty", 'result[p]'); 19 } 20 21 reportCompare(0, 0);