DescriptionSupport subclassing API functions.
When instantiating a subclassed API function, the instance cache is avoided. There is currently no direct API yet to instantiate a Template while passing in a new.target. It probably makes sense to extend ObjectTemplate::NewInstance to accept a new.target, in line with Reflect.construct.
BUG=v8:3330, v8:5001
Committed: https://crrev.com/73ee79438c26d8e1cfd18cdd6c6de3ef4ecf9db0
Cr-Commit-Position: refs/heads/master@{#36179}
Patch Set 1 #Patch Set 2 : Simplify #Patch Set 3 : #Patch Set 4 : Add test for Reflect.construct with base-class new-target #Patch Set 5 : Modify test to actually test Reflect.construct #Patch Set 6 : #
Messages
Total messages: 11 (6 generated)
|