<div dir="ltr">Hi WebKittens,
<div><br></div><div>I've landed the update of the ES6 Promise implementation.</div><div>Through this work, I've experimentally added the internal private function, @enqueueJob(JS function, JS array for arguments).</div><div>This is corresponding to the ES6 spec EnqueueJob[1].</div><div><br></div><div>This EnqueueJob handler is now tightly integrated with WebCore's microtask infrastructure. So in JSC framework side, we cannot use this function.</div><div>As a result, current JSC framework disables Promise because there's no event loop abstraction.</div><div><br></div><div>So I propose the API configuring euqueueJob handler into JSC VM (That corresponds to the Realm in ECMA spec).</div><div><br></div><div>Like,</div><div><br></div><div>void JSContextGroupSetEnqueueJobCallback(JSContextGroupRef, JSEnqueueJobCallback, void* callbackData);</div><div><br></div><div>What do you think about this?</div><div><br></div><div>[1]: <a href="http://ecma-international.org/ecma-262/6.0/#sec-enqueuejob">http://ecma-international.org/ecma-262/6.0/#sec-enqueuejob</a></div><div><br></div><div>Best Regards,</div><div>Yusuke Suzuki</div></div>