BeRo1985 / besen

Complete ECMAScript Fifth Edition Implemention in Object Pascal
GNU Lesser General Public License v2.1
217 stars 48 forks source link

jQuery very long time generate byte code. #6

Open JhonnyUmpire opened 8 years ago

JhonnyUmpire commented 8 years ago

Hi BeRo! BESEN is very good! Sorry my bad english. I trying make non visual browser with BESEN for executing javascript. But when i try executing jQuery v1.8.3 procdedure BESENCompiller.GenerateByteCode very long time. link for this jQuery https://yastatic.net/jquery/1.8.3/jquery.min.js To check, you can copy the jQuery code in an BESEN IDE and press "F9". On my computer 35sec befor error message.

Also there are some errors when compiling the example in module BESENDecompliler in line bntUNARYVOIDEXPRESSION: begin Add('void'); /// need "space" after "void" --> 'void ' Visit(TBESENASTNodeUnaryVoidExpression(ToVisit).SubExpression); end;

To check, another error decompiler you may compare JQuery code befor compile and after decompile, BESEN It can not compile a precompiled code.