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

compare v8 and SM results #8

Closed
redchair123 opened this issue Oct 11, 2012 · 5 comments
Closed

compare v8 and SM results #8

redchair123 opened this issue Oct 11, 2012 · 5 comments
Assignees

Comments

@redchair123
Copy link

there should be a syntax (e.g. c> ...) that will run a command in both SM and in v8 to compare the results.

For example, I want to highlight something that SM supports but not v8:

>> var [x,y] = [1,2]; print(x,y)
>>> var [x,y] = [1,2]; console.log(x,y)
@devyn
Copy link
Member

devyn commented Oct 11, 2012

I'm not sure I quite understand the purpose. What do you want the output to be, ideally?

@gkatsev
Copy link
Member

gkatsev commented Oct 11, 2012

I think the point is to run one command and see the output in both v8 and sm so that you could compare the results. For example, v8 currently doesn't support destructuring and thus would fail.
So running

c> var x,y; [x, y] = [1,2]; console.log(x, y);

we would see

v8> Syntax Error
sm> 1, 2

@devyn
Copy link
Member

devyn commented Oct 12, 2012

Very well. I'll make sure to implement something like this soon.

@ghost ghost assigned devyn Oct 12, 2012
@gkatsev
Copy link
Member

gkatsev commented Oct 12, 2012

though, would still be funnier if the trigger was >>>>> rather than c>

@redchair123
Copy link
Author

it would have been cute. alas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants