mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-02 20:47:33 +09:00
Convert the trailing array of BindingNames at the end of the various kinds of scope data into raw unsigned chars into which those BindingNames are placement-new'd, rather than memcpy-ing non-trivial classes around and failing to comply with the C++ object model
This commit is contained in:
parent
36607675b2
commit
4cbf54089a
6 changed files with 108 additions and 64 deletions
|
|
@ -838,7 +838,7 @@ LexicalScopeNode::dump(int indent)
|
|||
if (!isEmptyScope()) {
|
||||
LexicalScope::Data* bindings = scopeBindings();
|
||||
for (uint32_t i = 0; i < bindings->length; i++) {
|
||||
JSAtom* name = bindings->names[i].name();
|
||||
JSAtom* name = bindings->trailingNames[i].name();
|
||||
JS::AutoCheckCannotGC nogc;
|
||||
if (name->hasLatin1Chars())
|
||||
DumpName(name->latin1Chars(nogc), name->length());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue