summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/BytecodeEmitter.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-09-10 23:42:44 +0200
committerGitHub <noreply@github.com>2018-09-10 23:42:44 +0200
commit7bf3d2440e8ff65763daedca51aad6d0288ef61d (patch)
tree2c2bd6aa515c5d6eb33cabb24cc9299584b6b93e /js/src/frontend/BytecodeEmitter.cpp
parent2e9c525a91b66038dafcc2ef97dd436164ab65f6 (diff)
parent47c5bba17a1049ca69e01981aebe858fb50c8d69 (diff)
downloadUXP-7bf3d2440e8ff65763daedca51aad6d0288ef61d.tar
UXP-7bf3d2440e8ff65763daedca51aad6d0288ef61d.tar.gz
UXP-7bf3d2440e8ff65763daedca51aad6d0288ef61d.tar.lz
UXP-7bf3d2440e8ff65763daedca51aad6d0288ef61d.tar.xz
UXP-7bf3d2440e8ff65763daedca51aad6d0288ef61d.zip
Merge pull request #754 from trav90/class-memaccess-errors
Fix more -Wclass-memaccess warnings (GCC8)
Diffstat (limited to 'js/src/frontend/BytecodeEmitter.cpp')
-rw-r--r--js/src/frontend/BytecodeEmitter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp
index c7c615ccf..4eb7bf880 100644
--- a/js/src/frontend/BytecodeEmitter.cpp
+++ b/js/src/frontend/BytecodeEmitter.cpp
@@ -319,7 +319,7 @@ ScopeKindIsInBody(ScopeKind kind)
static inline void
MarkAllBindingsClosedOver(LexicalScope::Data& data)
{
- BindingName* names = data.names;
+ TrailingNamesArray& names = data.trailingNames;
for (uint32_t i = 0; i < data.length; i++)
names[i] = BindingName(names[i].name(), true);
}
@@ -8978,7 +8978,8 @@ BytecodeEmitter::isRestParameter(ParseNode* pn, bool* result)
if (bindings->nonPositionalFormalStart > 0) {
// |paramName| can be nullptr when the rest destructuring syntax is
// used: `function f(...[]) {}`.
- JSAtom* paramName = bindings->names[bindings->nonPositionalFormalStart - 1].name();
+ JSAtom* paramName =
+ bindings->trailingNames[bindings->nonPositionalFormalStart - 1].name();
*result = paramName && name == paramName;
return true;
}