Page 1 of 1

SB2.0 (Test Version) - Optimize Java Script BUG

Posted: Wed Feb 15, 2017 6:15 pm
by Num3
Howdy partners!

I am testing SB 2.0 in hope to convert a Purebasic project to it, i downloaded the LedDisplay example from the forum here, but if i try to create an APP with "Optimize Java Script" enabled i always get this error:

Image

Re: SB2.0 (Test Version) - Optimize Java Script BUG

Posted: Wed Feb 15, 2017 6:24 pm
by Sirius-2337
Try to leave out the last comma after stepDelay.

Code: Select all

!   stepDelay: 35 ;<-- no comma here

Re: SB2.0 (Test Version) - Optimize Java Script BUG

Posted: Fri Feb 17, 2017 8:41 pm
by Num3
Late reply, but it was that lost comma.
The debugger was a bit off target there xD

Re: SB2.0 (Test Version) - Optimize Java Script BUG

Posted: Sat Feb 18, 2017 6:57 am
by Fred
It's the google closure compiler which raise this error :) https://developers.google.com/closure/compiler/

Re: SB2.0 (Test Version) - Optimize Java Script BUG

Posted: Sat Feb 18, 2017 8:42 am
by Fangles
Num3, where do I find the ledgadget example? I used the forum search function and it finds nothing. Manually searched tips and tricks etc as well.

I loved the led example int he purebasic forum and wanted to see it here.