Function not running
Original Reporter info from Mantis: henrique @henriquewerlang
-
Reporter name: henrique
Original Reporter info from Mantis: henrique @henriquewerlang
- Reporter name: henrique
Description:
When I do type conversion, to a generic, the function that returns it, in JS does not place the parentheses, on line 35 of the generated JS file.
Additional information:
Generated file:
rtl.module("System",[],function () {
"use strict";
var $mod = this;
rtl.createClass(this,"TObject",null,function () {
this.$init = function () {
};
this.$final = function () {
};
this.Create = function () {
return this;
};
this.AfterConstruction = function () {
};
this.BeforeDestruction = function () {
};
});
$mod.$init = function () {
rtl.exitcode = 0;
};
});
rtl.module("UnitError",["System"],function () {
"use strict";
var $mod = this;
var $impl = $mod.$impl;
rtl.createClass(this,"TMyClass",pas.System.TObject,function () {
this.AFunction = function () {
var Result = undefined;
Result = pas.System.TObject.$create("Create");
return Result;
};
});
this.MakeError = function () {
var MyClass = null;
MyClass = $mod.TMyClass.$create("Create");
$impl.Error(MyClass.AFunction);
};
$mod.$implcode = function () {
$impl.Error = function (Arr) {
};
};
},[]);
rtl.module("program",["System","UnitError"],function () {
"use strict";
var $mod = this;
$mod.$main = function () {
pas.UnitError.MakeError();
};
});
Mantis conversion info:
- Mantis ID: 38281
- OS: Windows
- OS Build: 10
- Build: trunk
- Platform: Pas2Js
- Fixed in revision: 47914.