archives

« Bugzilla Issues Index

#4203 — 9.2.8 MakeConstructor (F, writablePrototype, prototype)


If I understand correctly, can I rewrite the algorithms like follows:

1. ...
2. ...
3. ...
4. If the writablePrototype argument was not provided, then
a. Let writablePrototype be true.
5. If the prototype argument was not provided, then
b. Let prototype be ObjectCreate(%ObjectPrototype%).
a. Let status be DefinePropertyOrThrow(prototype, "constructor", ...)
b. Assert: status is not an abrupt completion.
6. Let status be DefinePropertyOrThrow(F, "prototype", ...)
7. ...

It's kinda more clear.


fixed in rev37 editor's draft


In Rev37