mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
removed JSMap::operator[], added set/getPrototype().
This commit is contained in:
parent
81365016bc
commit
328d338eaf
@ -108,13 +108,16 @@ namespace JSTypes {
|
||||
JSProperties mProperties;
|
||||
JSMap* mPrototype;
|
||||
public:
|
||||
JSValue& operator[](const String& name)
|
||||
const JSValue& getProperty(const String& name) const
|
||||
{
|
||||
<<<<<<< jstypes.h
|
||||
=======
|
||||
return mProperties[name];
|
||||
}
|
||||
|
||||
const JSValue& getProperty(const String& name)
|
||||
{
|
||||
>>>>>>> 1.13
|
||||
#ifdef XP_MAC
|
||||
JSProperties::const_iterator i = mProperties.find(name);
|
||||
if (i != mProperties.end())
|
||||
@ -135,6 +138,16 @@ namespace JSTypes {
|
||||
{
|
||||
return (mProperties[name] = value);
|
||||
}
|
||||
|
||||
void setPrototype(JSMap* prototype)
|
||||
{
|
||||
mPrototype = prototype;
|
||||
}
|
||||
|
||||
JSMap* getPrototype()
|
||||
{
|
||||
return mPrototype;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -108,13 +108,16 @@ namespace JSTypes {
|
||||
JSProperties mProperties;
|
||||
JSMap* mPrototype;
|
||||
public:
|
||||
JSValue& operator[](const String& name)
|
||||
const JSValue& getProperty(const String& name) const
|
||||
{
|
||||
<<<<<<< jstypes.h
|
||||
=======
|
||||
return mProperties[name];
|
||||
}
|
||||
|
||||
const JSValue& getProperty(const String& name)
|
||||
{
|
||||
>>>>>>> 1.13
|
||||
#ifdef XP_MAC
|
||||
JSProperties::const_iterator i = mProperties.find(name);
|
||||
if (i != mProperties.end())
|
||||
@ -135,6 +138,16 @@ namespace JSTypes {
|
||||
{
|
||||
return (mProperties[name] = value);
|
||||
}
|
||||
|
||||
void setPrototype(JSMap* prototype)
|
||||
{
|
||||
mPrototype = prototype;
|
||||
}
|
||||
|
||||
JSMap* getPrototype()
|
||||
{
|
||||
return mPrototype;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user