archives

« Bugzilla Issues Index

#2017 — 22.1.3.*: [[GlobalArray]] + IsConstructor() checks should be reversed


The current [[GlobalArray]] checks perform the following steps:
---
1. If C does not have a [[GlobalArray]] internal data property, then
a. If IsConstructor(C) is true, then
...
---

Normally internal data properties are only accessed when a previous step already confirmed the value is an Object. That means the expected order is:
---
1. If IsConstructor(C) is true, then
a. If C does not have a [[GlobalArray]] internal data property, then
...
---


fixed in Rev20 editor's draft

new Object(aSymbol) now does ToObject(aSymbol)


(updated wrong bug)


[[GlobalArray]] eliminated in Rev20, but the ordering issue is still valid and was also fixed.

Fixed in Rev20 editor's draft


fixed in rev20 draft, Oct. 28, 2013