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:
Jason Orendorff
2015-02-18 18:49:17 -06:00
parent 99eb5c9229
commit f25a0ce728
4 changed files with 15 additions and 10 deletions

View File

@@ -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