DescriptionDisallow tail calls from async functions and generators
Tail calls don't make sense from async functions and generators, as
each activation of these functions needs to make a new, distnict,
non-reused generator object. These tail calls are not required per
spec. This patch disables both syntactic and implicit tail calls
in async functions and generators.
R=neis
BUG=v8:5301, chromium:639270
Committed: https://crrev.com/5af4cd984067f4e316aea04ef381a00724b5a8bf
Cr-Commit-Position: refs/heads/master@{#38986}
Patch Set 1 #Patch Set 2 : Change ordering of checks to make existing test pass #Patch Set 3 : Fix test #Patch Set 4 : Fix more tests #Patch Set 5 : Adding test suggested by neis #
Messages
Total messages: 26 (19 generated)
|