summaryrefslogtreecommitdiffstats
path: root/js/src/vm/ArgumentsObject.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 18:43:21 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:21 -0400
commit2ea840b045e7db434d6960f72f5313b9621ffd03 (patch)
tree13c8f55ddcc44434bdd309d5979afb1a9865c5ef /js/src/vm/ArgumentsObject.h
parent0bc46526909e579acf7f7dc5c59668fd79662437 (diff)
downloadUXP-2ea840b045e7db434d6960f72f5313b9621ffd03.tar
UXP-2ea840b045e7db434d6960f72f5313b9621ffd03.tar.gz
UXP-2ea840b045e7db434d6960f72f5313b9621ffd03.tar.lz
UXP-2ea840b045e7db434d6960f72f5313b9621ffd03.tar.xz
UXP-2ea840b045e7db434d6960f72f5313b9621ffd03.zip
1175823 - Implement [[DefineOwnProperty]] for mapped arguments object.
Diffstat (limited to 'js/src/vm/ArgumentsObject.h')
-rw-r--r--js/src/vm/ArgumentsObject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/vm/ArgumentsObject.h b/js/src/vm/ArgumentsObject.h
index 247c7cd94..988e41951 100644
--- a/js/src/vm/ArgumentsObject.h
+++ b/js/src/vm/ArgumentsObject.h
@@ -389,6 +389,7 @@ class ArgumentsObject : public NativeObject
class MappedArgumentsObject : public ArgumentsObject
{
static const ClassOps classOps_;
+ static const ObjectOps objectOps_;
public:
static const Class class_;
@@ -410,6 +411,8 @@ class MappedArgumentsObject : public ArgumentsObject
private:
static bool obj_enumerate(JSContext* cx, HandleObject obj);
static bool obj_resolve(JSContext* cx, HandleObject obj, HandleId id, bool* resolvedp);
+ static bool obj_defineProperty(JSContext* cx, HandleObject obj, HandleId id,
+ Handle<JS::PropertyDescriptor> desc, ObjectOpResult& result);
};
class UnmappedArgumentsObject : public ArgumentsObject