if (file.language != "js") {
return ret;
}
- if (ptype != "listener" && property[0] == '|') {
+ if (ptype != "listener" && property.length > 0 && property[0] == '|') {
return ret;
}
testcode, out errmsg);
if (line < 0) {
+ if (ptype == "file") {
+ return this.validateJavascriptCompression(code);
+ }
print("no errors\n");
return ret;
}