Fixes and enhancements to get class references, constructors and scripts

working from .xml input.


git-svn-id: svn://10.0.0.236/trunk@85189 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2001-01-19 23:56:37 +00:00
parent 322511835d
commit e56b80d07d
18 changed files with 332 additions and 210 deletions

View File

@@ -182,7 +182,9 @@ static JSValue loadxml(Context *cx, const JSValues &argv)
JSString& fileName = *val.string;
std::string str(fileName.length(), char());
std::transform(fileName.begin(), fileName.end(), str.begin(), narrow);
cx->loadClass(str.c_str());
ICodeModule *icm = cx->loadClass(str.c_str());
if (icm)
result = JSValue(new JSFunction(icm));
}
}
}