Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to cast object of type 'RemObjects.Script.EcmaScript.Undefined' to type 'RemObjects.Script.EcmaScript.EcmaScriptObject' #48

Open
evgeny-k opened this issue Jan 30, 2015 · 0 comments

Comments

@evgeny-k
Copy link
Contributor

test script:

var cbuilder_versions = "21";
cbuilder_versions = cbuilder_versions.split(';');
var delphi_versions = "21";
delphi_versions = delphi_versions .split(';');

for (var i=0,len=cbuilder_versions.length; i<len; i++)
{
ignoreErrors(buildRODCU(cbuilder_versions[i],true));
}

for (var i=0,len=delphi_versions.length; i<len; i++)
{
buildRODCU(delphi_versions[i],false);
}

function buildRODelphiDCU(_version, _platform, _isindy9,_cbuilder)
{
(_cbuilder) ? log("cbuilder is detected") : log("delphi is detected");
}

function buildRODCU(_version, _cbuilder)
{
buildRODelphiDCU(_version,"win32",false,_cbuilder);

}

out:

script(a.train) {
function buildRODCU(21, True) {
function buildRODelphiDCU(21, win32, False, True) {
cbuilder is detected
} function buildRODelphiDCU
} function buildRODCU
Ignoring error: Unable to cast object of type 'RemObjects.Script.EcmaScript.Undefined' to type 'RemObjects.Script.EcmaScript.EcmaScriptObject'.
function buildRODCU(21, False) {
function buildRODelphiDCU(21, win32, False, False) {
delphi is detected
} function buildRODelphiDCU
} function buildRODCU

} script

@evgeny-k evgeny-k added the bug label Jan 30, 2015
@evgeny-k evgeny-k changed the title "true" value recognized as undefined Unable to cast object of type 'RemObjects.Script.EcmaScript.Undefined' to type 'RemObjects.Script.EcmaScript.EcmaScriptObject' Jan 30, 2015
@evgeny-k evgeny-k removed the bug label Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants