You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The piece of js code is as follows:
.....
a.findAndModify(
{a: a},
[],
{$set: {a: a, b: b, updated_at: new Date()}},
{ new: true, upsert: true }, // line 173
function(err, doc) {
if(err) {
util.logError(logger, "error!", err);
return;
}
}
);
}
.....
got errors when doing compress:
[ERROR] 173:12:invalid property id
[ERROR] 174:26:missing ; before statement
[ERROR] 175:16:missing ; before statement
[ERROR] 176:14:syntax error
[ERROR] 183:5:'try' without 'catch' or 'finally'
[ERROR] 184:9:unlabelled break must be inside loop or switch
[ERROR] 185:7:syntax error
[ERROR] 186:9:missing ; before statement
[ERROR] 209:9:unlabelled break must be inside loop or switch
[ERROR] 211:2:syntax error
[ERROR] 212:8:syntax error
[ERROR] 213:2:syntax error
[ERROR] 1:0:Compilation produced 12 syntax errors.
org.mozilla.javascript.EvaluatorException: Compilation produced 12 syntax errors.
at com.yahoo.platform.yui.compressor.YUICompressor$1.runtimeError(YUICompressor.java:154)
at org.mozilla.javascript.Parser.parse(Parser.java:392)
at org.mozilla.javascript.Parser.parse(Parser.java:337)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:312)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.(JavaScriptCompressor.java:533)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21)
Please help estimate whether it's a program bug or a wrong usage.
Thanks
The text was updated successfully, but these errors were encountered:
The piece of js code is as follows:
.....
a.findAndModify(
{a: a},
[],
{$set: {a: a, b: b, updated_at: new Date()}},
{ new: true, upsert: true }, // line 173
function(err, doc) {
if(err) {
util.logError(logger, "error!", err);
return;
}
}
);
}
.....
got errors when doing compress:
[ERROR] 173:12:invalid property id
[ERROR] 174:26:missing ; before statement
[ERROR] 175:16:missing ; before statement
[ERROR] 176:14:syntax error
[ERROR] 183:5:'try' without 'catch' or 'finally'
[ERROR] 184:9:unlabelled break must be inside loop or switch
[ERROR] 185:7:syntax error
[ERROR] 186:9:missing ; before statement
[ERROR] 209:9:unlabelled break must be inside loop or switch
[ERROR] 211:2:syntax error
[ERROR] 212:8:syntax error
[ERROR] 213:2:syntax error
[ERROR] 1:0:Compilation produced 12 syntax errors.
org.mozilla.javascript.EvaluatorException: Compilation produced 12 syntax errors.
at com.yahoo.platform.yui.compressor.YUICompressor$1.runtimeError(YUICompressor.java:154)
at org.mozilla.javascript.Parser.parse(Parser.java:392)
at org.mozilla.javascript.Parser.parse(Parser.java:337)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:312)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.(JavaScriptCompressor.java:533)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21)
Please help estimate whether it's a program bug or a wrong usage.
Thanks
The text was updated successfully, but these errors were encountered: