TypL icon indicating copy to clipboard operation
TypL copied to clipboard

console.log broken

Open mraak opened this issue 5 years ago • 0 comments

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.

mraak avatar May 07 '19 06:05 mraak