Skip to content
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

salesforce: Ensure anyscii is loaded before executing #588

Merged
merged 2 commits into from
May 27, 2024

Conversation

josephjclark
Copy link
Collaborator

It's theoretically possible that any-ascii has not loaded before toUTF8 is called.

This seems vanishingly unlikely since we have to call out to the salesforce server before we start executing. Can we really handshake with Salesforce quicker than we can load a Javascript Module?

But Mutchi is seeing an runtime error where anyAscii is not a function. If I locally disable the salesforce connection code and just call toUTF, then it fails the same way. So it feels like somehow the module loader is losing the race 🤷

Anyway this is a more robust solution and I wish I'd thought of this earlier.

@josephjclark josephjclark merged commit d1b5fe4 into main May 27, 2024
1 check passed
@josephjclark josephjclark deleted the salesforce-fix-any-ascii-load branch May 27, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants