DescriptionPPC: [runtime] Throw exception for derived constructors in correct context.
Port c86f1897ac52f2cae088d6cab8843216bdaa9396
Original commit message:
When derived constructors return a non-object (or not undefined) we
currently throw an exception directly in the callee context. This was
achieved by desugaring the return statement for derived classes. To
be spec compliamnt a separate ConstructStubForDerived is introduced.
Instead of trowing directly, the desugared return statement inside
a derived constructor only returns an integer to indicate an incompatible
result.
R=cbruni@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=v8:4509
LOG=n
Committed: https://crrev.com/bbb95fba40817494752bbd231260b38ab7277aaf
Cr-Commit-Position: refs/heads/master@{#33341}
Patch Set 1 #
Messages
Total messages: 11 (4 generated)
|