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

Throwing a string does not report correctly #67

Open
ljharb opened this issue Sep 25, 2018 · 0 comments
Open

Throwing a string does not report correctly #67

ljharb opened this issue Sep 25, 2018 · 0 comments
Assignees

Comments

@ljharb
Copy link
Member

ljharb commented Sep 25, 2018

A file of:

throw new Error('foo');

provides these results:

#### ch
Error: foo

#### v8
Error: foo

#### sm
Error: foo

#### jsc
Error: foo

A file of:

throw 'foo';

provides these results:

#### ch
foo: undefined

#### sm


#### v8
foo: undefined

#### jsc
foo: undefined

This is both unclear that it threw, but also, spidermonkey is reporting the wrong result.

@rwaldron rwaldron self-assigned this Oct 2, 2018
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

2 participants