1
0
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:
Conrad Pankoff 2015-12-01 15:14:13 +11:00
commit 81e59b239e

View File

@ -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 .")
})
}