archives

« Bugzilla Issues Index

#3705 — 9.2.9 MakeConstructor: Unreachable steps


9.2.9 MakeConstructor (F, writablePrototype, prototype) Abstract Operation

The following steps are no longer reachable after the constructor reform.

- step 7.b (prototype has no own "constructor" property and F is extensible)
- step 9 (F has no own "prototype" property and F is extensible)


Maybe add these step (similar to 9.2.11 SetFunctionName step 1)?
---
Assert: `F` is an extensible object that does not have a prototype own property.
Assert: If the `prototype` arguments was provided, then `prototype` is an extensible object that does not have a constructor own property.
---


fixed in rev32 editor's draft


fixed in rev32 draft