diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /js/src/frontend/Stencil.h | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/frontend/Stencil.h')
-rw-r--r-- | js/src/frontend/Stencil.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/js/src/frontend/Stencil.h b/js/src/frontend/Stencil.h index 91308ffcc9..b5baa8e6c4 100644 --- a/js/src/frontend/Stencil.h +++ b/js/src/frontend/Stencil.h @@ -502,13 +502,14 @@ class ScopeStencil { } }; -class StencilModuleAssertion { +class StencilModuleImportAttribute { public: TaggedParserAtomIndex key; TaggedParserAtomIndex value; - StencilModuleAssertion() = default; - StencilModuleAssertion(TaggedParserAtomIndex key, TaggedParserAtomIndex value) + StencilModuleImportAttribute() = default; + StencilModuleImportAttribute(TaggedParserAtomIndex key, + TaggedParserAtomIndex value) : key(key), value(value) {} }; @@ -516,9 +517,9 @@ class StencilModuleRequest { public: TaggedParserAtomIndex specifier; - using AssertionVector = - Vector<StencilModuleAssertion, 0, js::SystemAllocPolicy>; - AssertionVector assertions; + using ImportAttributeVector = + Vector<StencilModuleImportAttribute, 0, js::SystemAllocPolicy>; + ImportAttributeVector attributes; // For XDR only. StencilModuleRequest() = default; @@ -531,23 +532,23 @@ class StencilModuleRequest { StencilModuleRequest(const StencilModuleRequest& other) : specifier(other.specifier) { AutoEnterOOMUnsafeRegion oomUnsafe; - if (!assertions.appendAll(other.assertions)) { + if (!attributes.appendAll(other.attributes)) { oomUnsafe.crash("StencilModuleRequest::StencilModuleRequest"); } } StencilModuleRequest(StencilModuleRequest&& other) noexcept - : specifier(other.specifier), assertions(std::move(other.assertions)) {} + : specifier(other.specifier), attributes(std::move(other.attributes)) {} StencilModuleRequest& operator=(StencilModuleRequest& other) { specifier = other.specifier; - assertions = std::move(other.assertions); + attributes = std::move(other.attributes); return *this; } StencilModuleRequest& operator=(StencilModuleRequest&& other) noexcept { specifier = other.specifier; - assertions = std::move(other.assertions); + attributes = std::move(other.attributes); return *this; } }; |