diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 19:30:53 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:24 -0400 |
commit | fe20cd26491f8db4e7304d509a2639cfccf26c7e (patch) | |
tree | 09500529d6663a92424b6b55016fe49577273ddd /js/src/vm | |
parent | 549bab83d1d7fa7bb0a15f7852ccffc708d70ab0 (diff) | |
download | UXP-fe20cd26491f8db4e7304d509a2639cfccf26c7e.tar UXP-fe20cd26491f8db4e7304d509a2639cfccf26c7e.tar.gz UXP-fe20cd26491f8db4e7304d509a2639cfccf26c7e.tar.lz UXP-fe20cd26491f8db4e7304d509a2639cfccf26c7e.tar.xz UXP-fe20cd26491f8db4e7304d509a2639cfccf26c7e.zip |
1320408 - Part 8: Change JSObject::reportNotConfigurable and JSObject::reportNotExtensible to static method.
Diffstat (limited to 'js/src/vm')
-rw-r--r-- | js/src/vm/Shape.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/vm/Shape.cpp b/js/src/vm/Shape.cpp index 306a2c540..15fb71343 100644 --- a/js/src/vm/Shape.cpp +++ b/js/src/vm/Shape.cpp @@ -534,7 +534,7 @@ NativeObject::addProperty(ExclusiveContext* cx, HandleNativeObject obj, HandleId return nullptr; if (!extensible) { if (cx->isJSContext()) - obj->reportNotExtensible(cx->asJSContext()); + JSObject::reportNotExtensible(cx->asJSContext(), obj); return nullptr; } @@ -727,7 +727,7 @@ CheckCanChangeAttrs(ExclusiveContext* cx, JSObject* obj, Shape* shape, unsigned* (*attrsp & (JSPROP_GETTER | JSPROP_SETTER | JSPROP_SHARED))) { if (cx->isJSContext()) - obj->reportNotConfigurable(cx->asJSContext(), shape->propid()); + JSObject::reportNotConfigurable(cx->asJSContext(), shape->propid()); return false; } @@ -785,7 +785,7 @@ NativeObject::putProperty(ExclusiveContext* cx, HandleNativeObject obj, HandleId if (!extensible) { if (cx->isJSContext()) - obj->reportNotExtensible(cx->asJSContext()); + JSObject::reportNotExtensible(cx->asJSContext(), obj); return nullptr; } |