I just grabbed pas2js 1.4.6 for Windows and giving it a whirl.
I'm trying to import a class defined elsewhere, as in the Wiki example (
http://wiki.freepascal.org/pas2js), but it's not compiling.
program hello;
uses
browserconsole;
type
TJSFunction = class external name 'User'(TJSObject)
private
public
procedure sayHi(_name:String);
end;
begin
WriteLn(sayHi('Marcus'));
end.
This is the error
hello.pas(8,30) Error: Expected "," or ":"
Fatal: Compilation aborted