Detect if ses is being transformed #662
Labels
confinement
Pertaining to confinement of guest programs.
kriskowal-review-2024-01
Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024
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.The text was updated successfully, but these errors were encountered: