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

console.log broken #43

Open
mraak opened this issue May 7, 2019 · 0 comments
Open

console.log broken #43

mraak opened this issue May 7, 2019 · 0 comments

Comments

@mraak
Copy link
Collaborator

mraak commented May 7, 2019

As I started to write more tests, I realized something is wrong with console.log().

var a = int``
a = "44"
console.log(a)

If I run the above code through the checker from CLI, like this

node .\lib\cli.js --file=.\test-snippets\snippets.js

I get the result

(pass 1) ------------------------
(Type-Tag) Error: No default for type: integer, at line 122, column 12
Implying a as tagged-type 'int', at line 122, column 8
Assignment type mismatch: expected type 'int', but found type 'string', at line 123, column 4
Could not find shape to check function call 'undefined(..)', at line 124, column 0

The checker does its job but it also tries to check console.log and does not execute it. This didn't use to be the case.

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