Open github-actions[bot] opened 4 months ago
/js/src/frontend/Stencil.h
--- e4110764321601eaeb23a9a43cf61ec89669d7e8/js/src/frontend/Stencil.h +++ e717ebb2097e09c757b7cd6c599933277e96a53d/js/src/frontend/Stencil.h @@ -511,48 +511,54 @@ class StencilModuleImportAttribute { StencilModuleImportAttribute(TaggedParserAtomIndex key, TaggedParserAtomIndex value) : key(key), value(value) {} }; class StencilModuleRequest { public: TaggedParserAtomIndex specifier; + TaggedParserAtomIndex firstUnsupportedAttributeKey; using ImportAttributeVector = Vector<StencilModuleImportAttribute, 0, js::SystemAllocPolicy>; ImportAttributeVector attributes; // For XDR only. StencilModuleRequest() = default; explicit StencilModuleRequest(TaggedParserAtomIndex specifier) : specifier(specifier) { MOZ_ASSERT(specifier); } StencilModuleRequest(const StencilModuleRequest& other) - : specifier(other.specifier) { + : specifier(other.specifier), + firstUnsupportedAttributeKey(other.firstUnsupportedAttributeKey) { AutoEnterOOMUnsafeRegion oomUnsafe; if (!attributes.appendAll(other.attributes)) { oomUnsafe.crash("StencilModuleRequest::StencilModuleRequest"); } } StencilModuleRequest(StencilModuleRequest&& other) noexcept - : specifier(other.specifier), attributes(std::move(other.attributes)) {} + : specifier(other.specifier), + firstUnsupportedAttributeKey(other.firstUnsupportedAttributeKey), + attributes(std::move(other.attributes)) {} StencilModuleRequest& operator=(StencilModuleRequest& other) { specifier = other.specifier; + firstUnsupportedAttributeKey = other.firstUnsupportedAttributeKey; attributes = std::move(other.attributes); return *this; } StencilModuleRequest& operator=(StencilModuleRequest&& other) noexcept { specifier = other.specifier; + firstUnsupportedAttributeKey = other.firstUnsupportedAttributeKey; attributes = std::move(other.attributes); return *this; } }; class MaybeModuleRequestIndex { static constexpr uint32_t NOTHING = UINT32_MAX;
Files
/js/src/frontend/Stencil.h
Changesets
Diffs
/js/src/frontend/Stencil.h