archives

« Bugzilla Issues Index

#2745 — 26.5.2.1: missing arg to ObjectCreate


In 26.5.2.1 "Proxy.revocable ( target, handler )",
step 5 says:
Let result be the result of ObjectCreate().

This is missing an argument for ObjectCreate's 'proto' parameter. Change:
ObjectCreate()
to:
ObjectCreate(null)
?


Sorry, I missed this sentence in the preamble for ObjectCreate:

If no arguments are provided %ObjectPrototype%
is used as the value of /proto/.

So the call in question is valid.

However, having 'proto' be optional just for the benefit of this single call isn't worth it. Change
ObjectCreate()
to
ObjectCreate(%ObjectPrototype%)
in 26.5.2.1, and you can delete that sentence from ObjectCreate's preamble.


fixed in rev25 editor's draft


confirmed fixed.