[Pas2js] htmlwidget in pas2j 2.2.0: pas.JS.isUndefined is not a function

Luca Olivetti luca at ventoso.org
Mon Aug 29 14:33:18 CEST 2022


El 29/8/22 a les 14:22, Luca Olivetti ha escrit:

>>
>> very strange, it works here. if I look in the Javascript, I can see the
>> function.
>>
>> Can you look in the generated .js file, you should see something like:
>>
>>    this.isUndefined = function (v) {
>>      return v == undefined;
>>    };
>>    this.isDefined = function (v) {
>>      return !(v == undefined);
>>    };
> 
> Yes, the snippet is there
> 
>>
>> Are you using optimizations ? If so, please try adding -O- in the custom
>> options of the compiler.
> 
> Same error (plus 3 warnings "unreachable code after return statement")

It was a PEBKAC: when I pasted the html code from the article, I left 
the original one generated by lazarus :-(

Bye
-- 
Luca



More information about the Pas2js mailing list