Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2019-08

external class with property modifier - feature request

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

warleyalex

This definition code works in pas2js

=========
function END_RCDATA: JSValue; external name '});' property; =========
hum, pas2js accepts the modifier property!

but when I use this:

END_RCDATA;

the pas2js emits this

});();

of couse, it would be cool if pas2js would just emit this:

});

just because there is the modifier "property".

Reply by email

Michael Van Canneyt
to warleyalex
warleyalex wrote 6 lines
This definition code works in pas2js ========= function END_RCDATA: JSValue; external name '});' property; ========= hum, pas2js accepts the modifier property!

That's an error, in fact, which must be fixed.

Michael.

Reply by email

Mattias Gaertner
to Michael Van Canneyt
Show quoted text 10 lines
On Sun, 18 Aug 2019, warleyalex via Pas2js wrote: > This definition code works in pas2js > > ========= > function END_RCDATA: JSValue; external name '});' property; > ========= > hum, pas2js accepts the modifier property! That's an error, in fact, which must be fixed.

I fixed it in trunk.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 15 lines
On Mon, 19 Aug 2019 09:09:00 +0200 (CEST) Michael Van Canneyt wrote: > On Sun, 18 Aug 2019, warleyalex via Pas2js wrote: > > > This definition code works in pas2js > > > > ========= > > function END_RCDATA: JSValue; external name '});' property; > > ========= > > hum, pas2js accepts the modifier property! > > That's an error, in fact, which must be fixed. I fixed it in trunk.

Thanks !

Michael.

Reply by email