mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Bug 1856338 - Part 26: Make CalendarDateUntil overload static. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D189797
This commit is contained in:
parent
e30cef675c
commit
5ef750c786
@ -3245,13 +3245,11 @@ static bool Calendar_dateUntil(JSContext* cx, unsigned argc, Value* vp);
|
||||
/**
|
||||
* CalendarDateUntil ( calendar, one, two, options [ , dateUntil ] )
|
||||
*/
|
||||
bool js::temporal::CalendarDateUntil(JSContext* cx,
|
||||
Handle<CalendarValue> calendar,
|
||||
Handle<Wrapped<PlainDateObject*>> one,
|
||||
Handle<Wrapped<PlainDateObject*>> two,
|
||||
Handle<JSObject*> options,
|
||||
Handle<Value> dateUntil,
|
||||
Duration* result) {
|
||||
static bool CalendarDateUntil(JSContext* cx, Handle<CalendarValue> calendar,
|
||||
Handle<Wrapped<PlainDateObject*>> one,
|
||||
Handle<Wrapped<PlainDateObject*>> two,
|
||||
Handle<JSObject*> options,
|
||||
Handle<Value> dateUntil, Duration* result) {
|
||||
// Step 1.
|
||||
if (calendar.isString()) {
|
||||
return BuiltinCalendarDateUntil(cx, one, two, options, result);
|
||||
|
@ -285,15 +285,6 @@ bool CalendarDateAdd(JSContext* cx, JS::Handle<CalendarValue> calendar,
|
||||
const Duration& duration, JS::Handle<JS::Value> dateAdd,
|
||||
PlainDate* result);
|
||||
|
||||
/**
|
||||
* CalendarDateUntil ( calendar, one, two, options [ , dateUntil ] )
|
||||
*/
|
||||
bool CalendarDateUntil(JSContext* cx, JS::Handle<CalendarValue> calendar,
|
||||
JS::Handle<Wrapped<PlainDateObject*>> one,
|
||||
JS::Handle<Wrapped<PlainDateObject*>> two,
|
||||
JS::Handle<JSObject*> options,
|
||||
JS::Handle<JS::Value> dateUntil, Duration* result);
|
||||
|
||||
/**
|
||||
* CalendarDateUntil ( calendar, one, two, options [ , dateUntil ] )
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user