summaryrefslogtreecommitdiffstats
path: root/js/src/vm/RegExpObject.h
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-19 10:42:58 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-19 10:42:58 +0100
commitdf313c5b777daf119385beb8b12c60c33b35a2d0 (patch)
tree774103d300333a82fb02dd3eb928c5583670bcb4 /js/src/vm/RegExpObject.h
parentcf70142093eb145b8e349bd7a95e22a55662a6d3 (diff)
downloadUXP-df313c5b777daf119385beb8b12c60c33b35a2d0.tar
UXP-df313c5b777daf119385beb8b12c60c33b35a2d0.tar.gz
UXP-df313c5b777daf119385beb8b12c60c33b35a2d0.tar.lz
UXP-df313c5b777daf119385beb8b12c60c33b35a2d0.tar.xz
UXP-df313c5b777daf119385beb8b12c60c33b35a2d0.zip
Use ordinary object for RegExp prototype
Issue #77
Diffstat (limited to 'js/src/vm/RegExpObject.h')
-rw-r--r--js/src/vm/RegExpObject.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/vm/RegExpObject.h b/js/src/vm/RegExpObject.h
index d6dde1668..dc428a973 100644
--- a/js/src/vm/RegExpObject.h
+++ b/js/src/vm/RegExpObject.h
@@ -79,9 +79,6 @@ RegExpAlloc(ExclusiveContext* cx, HandleObject proto = nullptr);
extern JSObject*
CloneRegExpObject(JSContext* cx, JSObject* regexp);
-extern JSObject*
-CreateRegExpPrototype(JSContext* cx, JSProtoKey key);
-
/*
* A RegExpShared is the compiled representation of a regexp. A RegExpShared is
* potentially pointed to by multiple RegExpObjects. Additionally, C++ code may
@@ -411,6 +408,7 @@ class RegExpObject : public NativeObject
static const unsigned PRIVATE_SLOT = 3;
static const Class class_;
+ static const Class protoClass_;
// The maximum number of pairs a MatchResult can have, without having to
// allocate a bigger MatchResult.