View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0038283 | pas2js | transpiler | public | 2020-12-30 19:04 | 2020-12-31 02:09 |
Reporter | henrique | Assigned To | Mattias Gaertner | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Pas2Js | OS | Windows | ||
Summary | 0038283: Error in the generation of interfaces | ||||
Description | I couldn't make in a separate project the error that is occurring here. But the compiler is generating a delayed startup of my interfaces. With this, I cannot seek the information of RTTI of my interfaces, because they were not started as expected. I'll send you an excerpt from the generated JS source to see if you can help me solve the problem. I changed the name of the unit and types in the example I'm sending. | ||||
Additional Information | rtl.createInterface(this,"IGenericInterface$G5","{6972CBB0-53CD-442A-92CC-5681E6719DD2}",["Func1","Proc1","Proc2"],pas.System.IInvokable,function () { this.$initSpec = function () { var $r = this.$rtti; $r.addMethod("Func1",1,null,pas.System.$rtti["TArray<Unit.MyObject>"]); $r.addMethod("Proc1",0,[["Dados",pas.Entidades.$rtti["MyObject"]]]); $r.addMethod("Proc2",0,[["Dados",pas.Entidades.$rtti["MyObject"]]]); }; },"IMyInterface<Unit.MyObject>"); | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 47919. | ||||
Attached Files |
|
|
Is the $initSpec called in the program js? |
|
No. This is the problem. But in an older version of the trunk, the declaration of initSpec don't occur. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-12-30 19:04 | henrique | New Issue | |
2020-12-30 20:23 | Mattias Gaertner | Assigned To | => Mattias Gaertner |
2020-12-30 20:23 | Mattias Gaertner | Status | new => assigned |
2020-12-30 20:24 | Mattias Gaertner | Note Added: 0127954 | |
2020-12-30 21:06 | henrique | Note Added: 0127956 | |
2020-12-31 02:09 | Mattias Gaertner | Status | assigned => resolved |
2020-12-31 02:09 | Mattias Gaertner | Resolution | open => fixed |
2020-12-31 02:09 | Mattias Gaertner | Fixed in Revision | => 47919. |