When developing JavaScript runtime, to prevent users modifying prototype (of Promise, for example, Promise.prototype.then), traditionally, we needs to copy and freeze a copy of Promise.prototype at the runtime bootstrap. But what if we could directly use things in the following Graph from v8 blogs: Here, I see a `performPromiseThen`, which almost does exactly Promise.prototype.then, what if we could use native syntax like `performPromiseThen` in runtime internals, so we don't need a primordials anymore?
In WebKit (JavaScriptCore), you have things similar to `promise.@then`, `@isCallable`, `@argumentCount`, etc. That make life much easier, remove every needs of primordials. I wonder if V8 have, or willing to have such feature? -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/v8-dev/cbdf412a-fea2-44aa-8e07-8b19b9eeca37n%40googlegroups.com.
