« Bugzilla Issues Index

#1535 — [[Call]] behaviour for uninitialised function objects not defined

Uninitialised function objects do not have a [[Code]] internal property, step 14 of is not yet updated to take this into account. It should probably test for [[Code]] in step 1 and throw a TypeError if [[Code]] is not present.

test case:
(new class extends Function { constructor(){} })()

Any function with this [[Call]] should have a [[Code]], but it may be unitialized (actually) initialized to undefined. Added a check for that.

fixed in rev 16 editor's draft

fixed in rev16 draft. July 15, 2013