-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calls to tslib __setFunctionName fail on Cobalt 9 #214
Comments
It'd be an issue in both; this library is just the same helpers that TS emits but pulled out for common reuse. |
Looking closer at the error in question, it seems like it's trying to set the |
In a TS file, we have:
The output I get from tsc is:
I think this snippet should fail on Cobalt 9 (it emits the problematic __setFunctionName call), but I haven't tried it. |
Per my comment earlier, I'm not sure the issue is |
We can no longer reproduce this failure. Please feel free to close the issue. |
We've observed new behavior after upgrading our code to TypeScript 5.0. Specifically, TS5.0 emits calls to a new tslib helper function
__setFunctionName
. This in turn callsObject.defineProperty(x, "name", ...)
on the class, which seems to fail on Cobalt 9:We're not sure whether this is an issue with tslib, TS5.0 or with the calling code (in our case I think it's a Jasmine test). I'd be grateful for any guidance the tslib team could provide.
The text was updated successfully, but these errors were encountered: