« Bugzilla Issues Index

#25 — S12.6.4_A14_T1.js is invalid

This test case consists of the following:
for(x in function __func(){return 0;}){
if (x=="prototype")
var __reached = 1;

followed by an assert to ensure __reached===1. While this might have been valid for ES3, this is invalid for ES5 as prototype is no longer enumerable. Section states:
The initial value of Function.prototype is the standard built-in Function prototype object (15.3.4). This property has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.

Fixed at