mirror of
https://github.com/robertkrimen/otto
synced 2025-10-05 19:19:10 +08:00
Merge pull request #129 from zupa-hu/patch-3
Fix missing filename in compile-time error
This commit is contained in:
commit
81e59b239e
|
@ -53,6 +53,9 @@ func TestParseFile(t *testing.T) {
|
|||
|
||||
_, err = ParseFile(nil, "", `/(?!def)abc/; return`, IgnoreRegExpErrors)
|
||||
is(err, "(anonymous): Line 1:15 Illegal return statement")
|
||||
|
||||
_, err = ParseFile(nil, "/make-sure-file-path-is-returned-not-anonymous", `a..`, 0)
|
||||
is(err, "/make-sure-file-path-is-returned-not-anonymous: Line 1:3 Unexpected token .")
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user