[[Call]] pass through result completion to callee

Yusuke Suzuki utatane.tea at gmail.com
Mon Dec 3 23:23:56 PST 2012


Hello all,

Because of 8.3.19.1 step 17, [[Call]] returns result completion even if
result.type isn't return.
As the result, [[Call]] may return NormalCompletion(empty), is it expected
behavior?
I think we should change empty to undefined.

For example,

function test() {
  var i;
}
var value = test();  // value is empty...

-- 
Regards,
Yusuke Suzuki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121204/8615a1a7/attachment.html>


More information about the es-discuss mailing list