On 2/3/14 1:05 PM, Domenic Denicola wrote:
Are you saying that [[Call]] is not well-defined for `window.postMessage.bind(window, 5, 
"*")` or for `set.bind(location, "relativeURI")`? That seems strange.

I'm saying that the algorithm in the [[Call]] of those objects (or rather of the functions being bound in this case) explicitly references a part of the environment called the "script settings object stack" and expects whoever plans to invoke that [[Call]] to maintain it as needed.

I'm also saying that promises as currently specified in https://github.com/domenic/promises-unwrapping do not maintain that stack. In particular, they can invoke the [[Call]] above with the stack empty, and the behavior of _that_ is not defined as far as I can tell.

-Boris
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to