This commit is contained in:
rogerl%netscape.com 2003-06-09 22:52:03 +00:00
Родитель 6741cba995
Коммит cfaa71e30c
2 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -287,9 +287,9 @@ namespace MetaData {
RegExpInstance *thisInst = checked_cast<RegExpInstance *>(JS2VAL_TO_OBJECT(thisValue));
uint32 flags = 0;
const String *regexpStr = &meta->engine->Empty_StringAtom;
const String *regexpStr = meta->engine->allocStringPtr("");
DEFINE_ROOTKEEPER(meta, rk1, regexpStr);
const String *flagStr = &meta->engine->Empty_StringAtom;
const String *flagStr = meta->engine->allocStringPtr("");
DEFINE_ROOTKEEPER(meta, rk2, flagStr);
if (argc > 0) {
if (JS2VAL_IS_OBJECT(argv[0]) && !JS2VAL_IS_NULL(argv[0])

Просмотреть файл

@ -147,7 +147,7 @@ NPBool nsPluginInstance::init(NPWindow* aWindow)
printf("Pandora: starting up\n");
world = new World();
metadata = new JavaScript::MetaData::JS2Metadata(*world);
spiderMonkeyClass = new (metadata) JS2SpiderMonkeyClass(&world->identifiers[widenCString("SpiderMonkey")]);
spiderMonkeyClass = new (metadata) JS2SpiderMonkeyClass(world->identifiers[widenCString("SpiderMonkey")]);
printf("Pandora: done starting up\n");
mInitialized = TRUE;
@ -512,8 +512,8 @@ bool nsPluginInstance::convertJS2ValueToJSValue(JSContext *cx, js2val v, jsval *
bool JS2SpiderMonkeyClass::Read(JS2Metadata *meta, js2val *base, Multiname *multiname, Environment *env, Phase phase, js2val *rval)
{
std::string str(multiname->name->length(), char());
std::transform(multiname->name->begin(), multiname->name->end(), str.begin(), narrow);
std::string str(multiname->name.length(), char());
std::transform(multiname->name.begin(), multiname->name.end(), str.begin(), narrow);
printf("JS2SpiderMonkeyClass: Reading property \"%s\"\n", str.c_str());
@ -547,8 +547,8 @@ bool JS2SpiderMonkeyClass::BracketRead(JS2Metadata *meta, js2val *base, js2val i
}
bool JS2SpiderMonkeyClass::Write(JS2Metadata *meta, js2val base, Multiname *multiname, Environment *env, bool createIfMissing, js2val newValue, bool initFlag)
{
std::string str(multiname->name->length(), char());
std::transform(multiname->name->begin(), multiname->name->end(), str.begin(), narrow);
std::string str(multiname->name.length(), char());
std::transform(multiname->name.begin(), multiname->name.end(), str.begin(), narrow);
printf("JS2SpiderMonkeyClass: Writing property \"%s\"\n", str.c_str());