Description[esnext] Fix various callsites to use is_resumable, not is_generator
Async functions are built out of generators, but the
SharedFunctionInfo returns false for is_generator. is_resumable is
the broader query. This patch fixes many parts of V8 to refer
to is_resumable as appropriate.
One incidental change is to remove a check for generators extending
classes. This is part of a general check for constructors being the
only thing which can extend classes, so it is removed here and the
error message for the general case is made more accurate.
BUG=v8:4483
Committed: https://crrev.com/46253e743df20c67bd524cf6f4288f549cb72739
Cr-Commit-Position: refs/heads/master@{#36621}
Patch Set 1 #
Total comments: 10
Patch Set 2 : formatting #Patch Set 3 : Fix test expectations #Patch Set 4 : fix test better #Patch Set 5 : Add CHECK #Patch Set 6 : fix dcheck #Patch Set 7 : #Patch Set 8 : Fix DCHECK #Patch Set 9 : fix dcheck again #
Total comments: 2
Patch Set 10 : style fix #Patch Set 11 : style fix #Patch Set 12 : Add (failing!) breakpoint tests #Patch Set 13 : Fix tests, add generator tests #Patch Set 14 : fix formatting #Patch Set 15 : formatting again #Patch Set 16 : don't pass unneeded zero #
Messages
Total messages: 69 (33 generated)
|