Commit bd99df65 authored by Julian Seward's avatar Julian Seward
Browse files

Bug 1718231 - JS::ContextOptions::ergonomicBrandChecks_ is sometimes used...

Bug 1718231 - JS::ContextOptions::ergonomicBrandChecks_ is sometimes used before it is defined.  r=mgaudet.

It appears that (1) JS::ContextOptions::ContextOptions() doesn't give an
initial value for field ergonomicBrandChecks_, and (2) at least in a browser
build, it can be used in that state.  This trivial patch initialises it to
`false`.

Differential Revision: https://phabricator.services.mozilla.com/D119284
parent c0c9d4da
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ class JS_PUBLIC_API ContextOptions {
        fuzzing_(false),
        privateClassFields_(false),
        privateClassMethods_(false),
        ergonomicBrandChecks_(false),
        topLevelAwait_(true) {
  }
  // clang-format on