You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When emitting Object Rest in --target es5 with a binding or assignment pattern containing a computed property name, we emit "undefined" instead of the value of the computed property name converted to a string. As a result, the e.indexOf(p) check results in a false negative in the __rest helper. NOTE: we must ensure the value of the computed property we pass to __rest is converted to a string otherwise e.indexOf(p) will still result in a false negative.
Also, !e.indexOf(p) is wrong, see #12227 for details.
TypeScript Version: 2.2.0-dev.20161114
When emitting Object Rest in
--target es5
with a binding or assignment pattern containing a computed property name, we emit "undefined" instead of the value of the computed property name converted to a string. As a result, thee.indexOf(p)
check results in a false negative in the__rest
helper. NOTE: we must ensure the value of the computed property we pass to__rest
is converted to a string otherwisee.indexOf(p)
will still result in a false negative.Also,
!e.indexOf(p)
is wrong, see #12227 for details.Code
Expected emit:
Actual emit:
The text was updated successfully, but these errors were encountered: