Closed shargon closed 7 years ago
Why are you trying to optimise an already optimised file? Does it happen with the unoptimised original? Can you narrow the problem down to small set of the code rather than pasting in a huge amount of javascript?
Im trying to optimize a folder. I dont know if are already optimized. But im try with the unoptimized version and happen to the same error
Can you narrow the problem down to small set of the code rather than pasting in a huge amount of javascript? Preferably with the unoptimised code, and paste that?
I have added some tests for this - you are using "default" as a property name in one instance and a function name in the other - "default" is a reserved word in javascript: http://www.w3schools.com/js/js_reserved.asp so you cannot use it.
Not my code, its taken from https://clipboardjs.com
@shargon I suggest you raise an issue with them that they are using javascript reserved words in their function names and property names: https://github.com/zenorocha/clipboard.js/issues
en Yahoo.Yui.Compressor.CustomErrorReporter.Error(String message, String sourceName, Int32 line, String lineSource, Int32 lineOffset) en EcmaScript.NET.Parser.AddError(String messageId) en EcmaScript.NET.Parser.ReportError(String messageId) en EcmaScript.NET.Parser.memberExprTail(Boolean allowCallSyntax, Node pn) en EcmaScript.NET.Parser.memberExpr(Boolean allowCallSyntax) en EcmaScript.NET.Parser.unaryExpr() en EcmaScript.NET.Parser.mulExpr() en EcmaScript.NET.Parser.addExpr() en EcmaScript.NET.Parser.shiftExpr() en EcmaScript.NET.Parser.relExpr(Boolean inForInit) en EcmaScript.NET.Parser.eqExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitAndExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitXorExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitOrExpr(Boolean inForInit) en EcmaScript.NET.Parser.andExpr(Boolean inForInit) en EcmaScript.NET.Parser.orExpr(Boolean inForInit) en EcmaScript.NET.Parser.condExpr(Boolean inForInit) en EcmaScript.NET.Parser.assignExpr(Boolean inForInit) en EcmaScript.NET.Parser.expr(Boolean inForInit) en EcmaScript.NET.Parser.statementHelper(Node statementLabel) en EcmaScript.NET.Parser.statement() en EcmaScript.NET.Parser.parseFunctionBody() en EcmaScript.NET.Parser.function(Int32 functionType) en EcmaScript.NET.Parser.primaryExpr() en EcmaScript.NET.Parser.memberExpr(Boolean allowCallSyntax) en EcmaScript.NET.Parser.unaryExpr() en EcmaScript.NET.Parser.mulExpr() en EcmaScript.NET.Parser.addExpr() en EcmaScript.NET.Parser.shiftExpr() en EcmaScript.NET.Parser.relExpr(Boolean inForInit) en EcmaScript.NET.Parser.eqExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitAndExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitXorExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitOrExpr(Boolean inForInit) en EcmaScript.NET.Parser.andExpr(Boolean inForInit) en EcmaScript.NET.Parser.orExpr(Boolean inForInit) en EcmaScript.NET.Parser.condExpr(Boolean inForInit) en EcmaScript.NET.Parser.assignExpr(Boolean inForInit) en EcmaScript.NET.Parser.primaryExpr() en EcmaScript.NET.Parser.memberExpr(Boolean allowCallSyntax) en EcmaScript.NET.Parser.unaryExpr() en EcmaScript.NET.Parser.mulExpr() en EcmaScript.NET.Parser.addExpr() en EcmaScript.NET.Parser.shiftExpr() en EcmaScript.NET.Parser.relExpr(Boolean inForInit) en EcmaScript.NET.Parser.eqExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitAndExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitXorExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitOrExpr(Boolean inForInit) en EcmaScript.NET.Parser.andExpr(Boolean inForInit) en EcmaScript.NET.Parser.orExpr(Boolean inForInit) en EcmaScript.NET.Parser.condExpr(Boolean inForInit) en EcmaScript.NET.Parser.assignExpr(Boolean inForInit) en EcmaScript.NET.Parser.primaryExpr() en EcmaScript.NET.Parser.memberExpr(Boolean allowCallSyntax) en EcmaScript.NET.Parser.unaryExpr() en EcmaScript.NET.Parser.mulExpr() en EcmaScript.NET.Parser.addExpr() en EcmaScript.NET.Parser.shiftExpr() en EcmaScript.NET.Parser.relExpr(Boolean inForInit) en EcmaScript.NET.Parser.eqExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitAndExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitXorExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitOrExpr(Boolean inForInit) en EcmaScript.NET.Parser.andExpr(Boolean inForInit) en EcmaScript.NET.Parser.orExpr(Boolean inForInit) en EcmaScript.NET.Parser.condExpr(Boolean inForInit) en EcmaScript.NET.Parser.assignExpr(Boolean inForInit) en EcmaScript.NET.Parser.argumentList(Node listNode) en EcmaScript.NET.Parser.memberExprTail(Boolean allowCallSyntax, Node pn) en EcmaScript.NET.Parser.memberExpr(Boolean allowCallSyntax) en EcmaScript.NET.Parser.unaryExpr() en EcmaScript.NET.Parser.mulExpr() en EcmaScript.NET.Parser.addExpr() en EcmaScript.NET.Parser.shiftExpr() en EcmaScript.NET.Parser.relExpr(Boolean inForInit) en EcmaScript.NET.Parser.eqExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitAndExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitXorExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitOrExpr(Boolean inForInit) en EcmaScript.NET.Parser.andExpr(Boolean inForInit) en EcmaScript.NET.Parser.orExpr(Boolean inForInit) en EcmaScript.NET.Parser.condExpr(Boolean inForInit) en EcmaScript.NET.Parser.assignExpr(Boolean inForInit) en EcmaScript.NET.Parser.expr(Boolean inForInit) en EcmaScript.NET.Parser.statementHelper(Node statementLabel) en EcmaScript.NET.Parser.statement() en EcmaScript.NET.Parser.parseFunctionBody() en EcmaScript.NET.Parser.function(Int32 functionType) en EcmaScript.NET.Parser.primaryExpr() en EcmaScript.NET.Parser.memberExpr(Boolean allowCallSyntax) en EcmaScript.NET.Parser.unaryExpr() en EcmaScript.NET.Parser.mulExpr() en EcmaScript.NET.Parser.addExpr() en EcmaScript.NET.Parser.shiftExpr() en EcmaScript.NET.Parser.relExpr(Boolean inForInit) en EcmaScript.NET.Parser.eqExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitAndExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitXorExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitOrExpr(Boolean inForInit) en EcmaScript.NET.Parser.andExpr(Boolean inForInit) en EcmaScript.NET.Parser.orExpr(Boolean inForInit) en EcmaScript.NET.Parser.condExpr(Boolean inForInit) en EcmaScript.NET.Parser.assignExpr(Boolean inForInit) en EcmaScript.NET.Parser.argumentList(Node listNode) en EcmaScript.NET.Parser.memberExprTail(Boolean allowCallSyntax, Node pn) en EcmaScript.NET.Parser.memberExpr(Boolean allowCallSyntax) en EcmaScript.NET.Parser.unaryExpr() en EcmaScript.NET.Parser.unaryExpr() en EcmaScript.NET.Parser.mulExpr() en EcmaScript.NET.Parser.addExpr() en EcmaScript.NET.Parser.shiftExpr() en EcmaScript.NET.Parser.relExpr(Boolean inForInit) en EcmaScript.NET.Parser.eqExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitAndExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitXorExpr(Boolean inForInit) en EcmaScript.NET.Parser.bitOrExpr(Boolean inForInit) en EcmaScript.NET.Parser.andExpr(Boolean inForInit) en EcmaScript.NET.Parser.orExpr(Boolean inForInit) en EcmaScript.NET.Parser.condExpr(Boolean inForInit) en EcmaScript.NET.Parser.assignExpr(Boolean inForInit) en EcmaScript.NET.Parser.expr(Boolean inForInit) en EcmaScript.NET.Parser.statementHelper(Node statementLabel) en EcmaScript.NET.Parser.statement() en EcmaScript.NET.Parser.Parse() en Yahoo.Yui.Compressor.JavaScriptCompressor.Parse(StreamReader stream, ErrorReporter reporter) en Yahoo.Yui.Compressor.JavaScriptCompressor.DoCompress(String source) en Yahoo.Yui.Compressor.Compressor.Compress(String source) en MaiSyncFiles.Min.Static.JsMin.ChangeStream(Stream stream) en E:\Fuentes\MaiSyncFiles\MaiSyncFiles.Min.Static\JsMin.cs:línea 31
Trying optimize this js (i know, its optimized yet..)