Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2025-04-23 16:42:33 -07:00
committed by GitHub
parent ce8cae060d
commit 9646bf1a38
8 changed files with 153 additions and 72 deletions

View File

@@ -101,8 +101,7 @@ static JSC::SyntheticSourceProvider::SyntheticSourceGenerator generateInternalMo
JSC::EnsureStillAliveScope stillAlive(object);
PropertyNameArray properties(vm, PropertyNameMode::Strings, PrivateSymbolMode::Exclude);
object->getPropertyNames(globalObject, properties, DontEnumPropertiesMode::Exclude);
object->getOwnPropertyNames(object, globalObject, properties, DontEnumPropertiesMode::Exclude);
RETURN_IF_EXCEPTION(throwScope, void());
auto len = properties.size() + 1;
@@ -116,7 +115,9 @@ static JSC::SyntheticSourceProvider::SyntheticSourceGenerator generateInternalMo
hasDefault = true;
}
exportNames.append(entry);
exportValues.append(object->get(globalObject, entry));
JSValue value = object->get(globalObject, entry);
RETURN_IF_EXCEPTION(throwScope, void());
exportValues.append(value);
}
if (!hasDefault) {