Bug 1691008 - Part 1: Remove CreateSingleton enum. r=jandem
authorAndré Bargull <andre.bargull@gmail.com>
Fri, 05 Feb 2021 13:36:50 +0000
changeset 566140 9c067e33e062d7b858ca6452eb82064709e02177
parent 566139 3a5859aeaf9a3abb6405ead1230a32ea118b8f39
child 566141 2567f9e7a5a31cdd65031fcd29f6b54c3efea6a8
push id38176
push userapavel@mozilla.com
push dateSat, 06 Feb 2021 09:42:43 +0000
treeherdermozilla-central@ea0966587b4a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1691008
milestone87.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 1691008 - Part 1: Remove CreateSingleton enum. r=jandem Differential Revision: https://phabricator.services.mozilla.com/D104181
js/src/vm/TypedArrayObject.cpp
--- a/js/src/vm/TypedArrayObject.cpp
+++ b/js/src/vm/TypedArrayObject.cpp
@@ -308,18 +308,16 @@ uint32_t JS_FASTCALL js::ClampDoubleToUi
 
   return y;
 }
 
 namespace {
 
 enum class SpeciesConstructorOverride { None, ArrayBuffer };
 
-enum class CreateSingleton { No, Yes };
-
 template <typename NativeType>
 class TypedArrayObjectTemplate : public TypedArrayObject {
   friend class TypedArrayObject;
 
  public:
   static constexpr Scalar::Type ArrayTypeID() {
     return TypeIDOfType<NativeType>::id;
   }