diff options
author | Martok <martok@martoks-place.de> | 2023-03-23 18:53:27 +0100 |
---|---|---|
committer | Martok <martok@martoks-place.de> | 2023-04-03 16:50:21 +0200 |
commit | 33d29efe43993cd5b5ac63f898430f0cca30f4a5 (patch) | |
tree | 40ad8075f9fb82bf2125e12394b3fb21b1f87f56 /js/src/builtin | |
parent | 416d9683fec34fcd73a1755493a4f44006687270 (diff) | |
download | uxp-33d29efe43993cd5b5ac63f898430f0cca30f4a5.tar.gz |
Issue #2173 - Add a new PNK_PROPERTYNAME to hold location information about property access name
Based-on: m-c 1378808/2
Diffstat (limited to 'js/src/builtin')
-rw-r--r-- | js/src/builtin/ReflectParse.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/builtin/ReflectParse.cpp b/js/src/builtin/ReflectParse.cpp index a9c354fa7c..d63c1dd493 100644 --- a/js/src/builtin/ReflectParse.cpp +++ b/js/src/builtin/ReflectParse.cpp @@ -3066,20 +3066,20 @@ ASTSerializer::expression(ParseNode* pn, MutableHandleValue dst) case PNK_OPTDOT: case PNK_DOT: { - MOZ_ASSERT(pn->pn_pos.encloses(pn->pn_expr->pn_pos)); + MOZ_ASSERT(pn->pn_pos.encloses(pn->pn_left->pn_pos)); RootedValue expr(cx); RootedValue propname(cx); - RootedAtom pnAtom(cx, pn->pn_atom); + RootedAtom pnAtom(cx, pn->pn_right->pn_atom); bool isSuper = pn->is<PropertyAccess>() && pn->as<PropertyAccess>().isSuper(); if (isSuper) { - if (!builder.super(&pn->pn_expr->pn_pos, &expr)) + if (!builder.super(&pn->pn_left->pn_pos, &expr)) return false; } else { - if (!expression(pn->pn_expr, &expr)) + if (!expression(pn->pn_left, &expr)) return false; } |