S15.1.2.3_A7.5.js (773B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: The parseFloat property has the attribute DontEnum 6 esid: sec-parsefloat-string 7 description: Checking use propertyIsEnumerable, for-in 8 ---*/ 9 10 //CHECK#1 11 if (this.propertyIsEnumerable('parseFloat') !== false) { 12 throw new Test262Error('#1:this.propertyIsEnumerable(\'parseFloat\') === false. Actual: ' + (this.propertyIsEnumerable('parseFloat'))); 13 } 14 15 //CHECK#2 16 var result = true; 17 for (var p in this) { 18 if (p === "parseFloat") { 19 result = false; 20 } 21 } 22 23 if (result !== true) { 24 throw new Test262Error('#2: result = true; for (p in this) { if (p === "parseFloat") result = false; } result === true;'); 25 } 26 27 reportCompare(0, 0);