summaryrefslogtreecommitdiff
path: root/js/src/vm/GlobalObject.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-12-22 20:32:56 +0000
committerMoonchild <moonchild@palemoon.org>2020-12-22 20:32:56 +0000
commit25b6703e956a33e0ecd8bdc18f423e5eb5dd09d4 (patch)
tree7c410dbb5d672661bf0a567736501ec3f5ef5191 /js/src/vm/GlobalObject.h
parent911cbcd1af7d8becf9694e3b51ce773908e1a93d (diff)
downloaduxp-25b6703e956a33e0ecd8bdc18f423e5eb5dd09d4.tar.gz
Issue #1701 - Implement Intl.PluralRules API
Diffstat (limited to 'js/src/vm/GlobalObject.h')
-rw-r--r--js/src/vm/GlobalObject.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/vm/GlobalObject.h b/js/src/vm/GlobalObject.h
index 011f90aa16..f9c0149f12 100644
--- a/js/src/vm/GlobalObject.h
+++ b/js/src/vm/GlobalObject.h
@@ -109,6 +109,7 @@ class GlobalObject : public NativeObject
COLLATOR_PROTO,
NUMBER_FORMAT_PROTO,
DATE_TIME_FORMAT_PROTO,
+ PLURAL_RULES_PROTO,
MODULE_PROTO,
IMPORT_ENTRY_PROTO,
EXPORT_ENTRY_PROTO,
@@ -507,6 +508,11 @@ class GlobalObject : public NativeObject
return getOrCreateObject(cx, global, DATE_TIME_FORMAT_PROTO, initIntlObject);
}
+ static JSObject*
+ getOrCreatePluralRulesPrototype(JSContext* cx, Handle<GlobalObject*> global) {
+ return getOrCreateObject(cx, global, PLURAL_RULES_PROTO, initIntlObject);
+ }
+
static bool ensureModulePrototypesCreated(JSContext *cx, Handle<GlobalObject*> global);
JSObject* maybeGetModulePrototype() {