In my use case, I call lots of functions from other JS code only, not within the pascal code. I already tried -O- option on pas2js.cfg file. No luck. I'm using Lazarus with pas2js. -- Sent from: http://pas2js.38893.n8.nabble.com/