-
Notifications
You must be signed in to change notification settings - Fork 87
Detect if ses is being transformed #662
Copy link
Copy link
Open
Labels
confinementPertaining to confinement of guest programs.Pertaining to confinement of guest programs.kriskowal-review-2024-01Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024
Metadata
Metadata
Assignees
Labels
confinementPertaining to confinement of guest programs.Pertaining to confinement of guest programs.kriskowal-review-2024-01Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024
Type
Fields
Give feedbackNo fields configured for issues without a type.
it would be helpful for debugging if there were some heuristics for checking if the ses dists were being transformed, as in #659
even being woefully imperfect, this check can be useful by logging a warning or error suggesting that a transform might have taken place.
one common thing that is easy to check is if async functions are being transformed to non-async functions.
here is an example of the transformation.
original:
after transformation:
note that the transformed async function has a prototype of
Function.prototype. we could throw an error suggesting that the code might have been transformed.