diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/builtin/ReflectParse.cpp | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/builtin/ReflectParse.cpp')
-rw-r--r-- | js/src/builtin/ReflectParse.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/src/builtin/ReflectParse.cpp b/js/src/builtin/ReflectParse.cpp index dde953143e..aa5666f238 100644 --- a/js/src/builtin/ReflectParse.cpp +++ b/js/src/builtin/ReflectParse.cpp @@ -505,7 +505,7 @@ class NodeBuilder { [[nodiscard]] bool debuggerStatement(TokenPos* pos, MutableHandleValue dst); [[nodiscard]] bool moduleRequest(HandleValue moduleSpec, - NodeVector& assertions, TokenPos* pos, + NodeVector& attributes, TokenPos* pos, MutableHandleValue dst); [[nodiscard]] bool importAttribute(HandleValue key, HandleValue value, @@ -1160,10 +1160,10 @@ bool NodeBuilder::yieldExpression(HandleValue arg, YieldKind kind, dst); } -bool NodeBuilder::moduleRequest(HandleValue moduleSpec, NodeVector& assertions, +bool NodeBuilder::moduleRequest(HandleValue moduleSpec, NodeVector& attributes, TokenPos* pos, MutableHandleValue dst) { RootedValue array(cx); - if (!newArray(assertions, &array)) { + if (!newArray(attributes, &array)) { return false; } @@ -1967,12 +1967,12 @@ bool ASTSerializer::exportDeclaration(ParseNode* exportNode, &moduleRequest->as<BinaryNode>().right()->as<ListNode>(); MOZ_ASSERT(attributeList->isKind(ParseNodeKind::ImportAttributeList)); - NodeVector assertions(cx); - if (!importAttributes(attributeList, assertions)) { + NodeVector attributes(cx); + if (!importAttributes(attributeList, attributes)) { return false; } - if (!builder.moduleRequest(moduleSpec, assertions, &exportNode->pn_pos, + if (!builder.moduleRequest(moduleSpec, attributes, &exportNode->pn_pos, &moduleRequestValue)) { return false; } @@ -2030,13 +2030,13 @@ bool ASTSerializer::importAttributes(ListNode* attributeList, return false; } - RootedValue assertion(cx); + RootedValue attribute(cx); if (!builder.importAttribute(key, value, &attributeNode->pn_pos, - &assertion)) { + &attribute)) { return false; } - if (!attributes.append(assertion)) { + if (!attributes.append(attribute)) { return false; } } |