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

Crash Interpreter when arguments are wrong #392

Open
m11o opened this issue Jun 17, 2023 · 0 comments
Open

Crash Interpreter when arguments are wrong #392

m11o opened this issue Jun 17, 2023 · 0 comments

Comments

@m11o
Copy link

m11o commented Jun 17, 2023

In the wasm site, it was crashed when arguments are wrong in defined methods.

For example,

> (define sum (lambda (a b) (+ a b)))
3
> (sum 10 20)
30
> (sum 10)
RuntimeError: unreachable
    at zip-lambda-args (https://pollrobots.com/scheme/wasm/scheme.wasm:wasm-function[248]:0xbf79)
    at apply-lambda (https://pollrobots.com/scheme/wasm/scheme.wasm:wasm-function[241]:0xbd9f)
    at cont-apply-form (https://pollrobots.com/scheme/wasm/scheme.wasm:wasm-function[238]:0xbbee)
    at eval (https://pollrobots.com/scheme/wasm/scheme.wasm:wasm-function[232]:0xb7c9)
    at a.eval (https://pollrobots.com/scheme/67.d46c0a73400b858e9b00.js:1:3894)
    at a.processLine (https://pollrobots.com/scheme/67.d46c0a73400b858e9b00.js:1:8704)
    at Object.onInput (https://pollrobots.com/scheme/67.d46c0a73400b858e9b00.js:1:14287)
    at Object.onMessage (https://pollrobots.com/scheme/67.d46c0a73400b858e9b00.js:1:12005)
    at https://pollrobots.com/scheme/67.d46c0a73400b858e9b00.js:1:10930

Press <Enter> to restart scheme runtime.
stopped:

Version: v0.1-136-gb5ce0b8

We expect to display messages of errors not crashing. Thanks.

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

No branches or pull requests

1 participant