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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user