Bug 1334813 - Change DataView.length from 3 to 1. r=arai
authorTill Schneidereit <till@tillschneidereit.net>
Wed, 21 Mar 2018 03:10:00 +0900
changeset 501795 a922413f0f7476f77554e94daff9ac43bb8d2e85
parent 501794 c0ff603045c080877553eb2d3a45abd8ef58a1d0
child 501796 5e7636ec12c5c4543b64428e15165031cff32dc4
child 501945 3c160322e8464ee5b2c970e4d83a3eff877508dd
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersarai
bugs1334813
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1334813 - Change DataView.length from 3 to 1. r=arai At the March 2018 TC39 meeting people agreed to keep the spec-as is and change implementations.
js/src/builtin/DataViewObject.cpp
--- a/js/src/builtin/DataViewObject.cpp
+++ b/js/src/builtin/DataViewObject.cpp
@@ -898,17 +898,17 @@ static const ClassOps DataViewObjectClas
     nullptr, /* finalize */
     nullptr, /* call */
     nullptr, /* hasInstance */
     nullptr, /* construct */
     ArrayBufferViewObject::trace
 };
 
 const ClassSpec DataViewObject::classSpec_ = {
-    GenericCreateConstructor<DataViewObject::construct, 3, gc::AllocKind::FUNCTION>,
+    GenericCreateConstructor<DataViewObject::construct, 1, gc::AllocKind::FUNCTION>,
     GenericCreatePrototype<DataViewObject>,
     nullptr,
     nullptr,
     DataViewObject::methods,
     DataViewObject::properties,
 };
 
 const Class DataViewObject::class_ = {