Description[es6] Fix return checking in derived constructors
In a derived class constructor in case undefined is returned, we
should return the receiver. If the return is any other value type
we should throw a TypeError.
BUG=v8:4061
LOG=N
R=dslomov@chromium.org, adamk@chromium.org
Committed: https://crrev.com/baddc25eb2fa797649f92ba4a8fa7603ce38d49a
Cr-Commit-Position: refs/heads/master@{#28114}
Patch Set 1 #Patch Set 2 : cleanup #Patch Set 3 : Fix issue where the temp var was not declared in the right scope #
Messages
Total messages: 11 (2 generated)
|