eshost icon indicating copy to clipboard operation
eshost copied to clipboard

Throwing a string does not report correctly

Open ljharb opened this issue 6 years ago • 0 comments

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.

ljharb avatar Sep 25 '18 18:09 ljharb