[Pas2js] Class constant with "external" class

warleyalex warleyalex at yahoo.com.br
Sat Jan 27 03:01:49 CET 2018


the codegen does not emit corresponding const.

type
  TBase = class external name 'TBase'
  public
    (* class var cPublic : String = '{"name":"warleyx"}'; *)  // not
supported
    class const cTemp = '{"page:about2"}';
  end;

console.log(
  TJSJSON.Parse(TBase.cTemp)
);


The compiler will emit:

window.console.log(JSON.parse(TBase.cTemp));

instead of this:

console.log(JSON.parse("{\"page:about2\"}"));





--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list