[Pas2js] Array initialization issue with external class
warleyalex
warleyalex at yahoo.com.br
Sat Jan 20 14:40:16 CET 2018
The compiler emits raw JS object instead of array.
-----------------------------------------------
type
TBindings = class external name 'Object'
public
params: Array of JSValue;
Constructor new;
end;
obj := TBindings.new;
obj.params := [];
-----------------------------------------------
it will emit:
var obj = null;
obj = new Object();
obj.params = {};
--
Sent from: http://pas2js.38893.n8.nabble.com/
More information about the Pas2js
mailing list