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

jsvu-d8 reporting "Unexpected end of input" for basic test scripts #50

Open
dilijev opened this issue Apr 10, 2018 · 2 comments
Open

jsvu-d8 reporting "Unexpected end of input" for basic test scripts #50

dilijev opened this issue Apr 10, 2018 · 2 comments

Comments

@dilijev
Copy link
Collaborator

dilijev commented Apr 10, 2018

Verified that the latest eshost is installed (3.8.0 at time of writing) and the jsvu binary is up-to-date (latest):

> eshost -ie "42"
## Source
print(42)

#### jsvu-d8
SyntaxError: Unexpected end of input

The same script runs just fine directly under the jsvu d8 binary.

>where d8
C:\Users\doilij\.jsvu\d8.cmd
>d8 -e "print(42)"
42

Is there some d8 support change that is needed in eshost-cli or eshost or both?

@dilijev
Copy link
Collaborator Author

dilijev commented Apr 11, 2018

Looks like this has been resolved in a newer build of v8.

@dilijev dilijev closed this as completed Apr 11, 2018
@mathiasbynens
Copy link
Contributor

mathiasbynens commented Aug 30, 2018

I am often seeing the same issue when using eshost, but not when using d8 directly. Simple example:

$ eshost -x 'foo = 42; print(foo)'
#### Chakra
42

#### V8 --harmony
SyntaxError: Unexpected end of input

#### JavaScriptCore
42

#### V8
SyntaxError: Unexpected end of input

#### SpiderMonkey
42

#### XS
42

$ v8 -e 'foo = 42; print(foo)'
42

Can we reopen this issue?

@dilijev dilijev reopened this Aug 30, 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