Bug 1113369, part 1½ - Avoid regressing error messages by adding obj to the ObjectOpResult methods that could throw a TypeError. r=Waldo.
This commit is contained in:
@@ -913,7 +913,7 @@ js::StandardDefineProperty(JSContext *cx, HandleObject obj, HandleId id, const P
|
||||
{
|
||||
ObjectOpResult success;
|
||||
return StandardDefineProperty(cx, obj, id, desc, success) &&
|
||||
success.checkStrict(cx, id);
|
||||
success.checkStrict(cx, obj, id);
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -922,7 +922,7 @@ js::StandardDefineProperty(JSContext *cx, HandleObject obj, HandleId id,
|
||||
{
|
||||
ObjectOpResult success;
|
||||
return StandardDefineProperty(cx, obj, id, desc, success) &&
|
||||
success.checkStrict(cx, id);
|
||||
success.checkStrict(cx, obj, id);
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user