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

Cryptic error when executing (atob "hello") #84

Closed
jcubic opened this issue Nov 10, 2020 · 1 comment
Closed

Cryptic error when executing (atob "hello") #84

jcubic opened this issue Nov 10, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@jcubic
Copy link
Collaborator

jcubic commented Nov 10, 2020

When calling from JavaScript it throw:

DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

but in LIPS it throw:

Cannot set property code of  which has only a getter

The same error need to be shown in LIPS REPL.

@jcubic jcubic added the bug Something isn't working label Nov 10, 2020
@jcubic
Copy link
Collaborator Author

jcubic commented Nov 10, 2020

The error came when adding code prop to Exception in exec that was a number in DOM exception and exec tried to use e.code.push() on number.

@jcubic jcubic closed this as completed Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant