mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user