Bug 1029933 - Tweak GenericCreateConstructor to make it usable with Error. r=Waldo

This commit is contained in:
Bobby Holley
2014-07-04 12:41:28 -07:00
parent 01b8658679
commit c9867c646c
4 changed files with 9 additions and 7 deletions

View File

@@ -3025,7 +3025,7 @@ const Class DateObject::class_ = {
nullptr, /* construct */
nullptr, /* trace */
{
GenericCreateConstructor<js_Date, NAME_OFFSET(Date), MAXARGS>,
GenericCreateConstructor<js_Date, MAXARGS, JSFunction::FinalizeKind>,
GenericCreatePrototype<&DateObject::class_>,
date_static_methods,
date_methods,