mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 22:32:06 +00:00
Replace some Identifier::fromString usages with vm->propertyNames (#12575)
This commit is contained in:
@@ -49,7 +49,7 @@ template<> CryptoEcKeyAlgorithm convertDictionary<CryptoEcKeyAlgorithm>(JSGlobal
|
||||
if (isNullOrUndefined)
|
||||
nameValue = jsUndefined();
|
||||
else {
|
||||
nameValue = object->get(&lexicalGlobalObject, Identifier::fromString(vm, "name"_s));
|
||||
nameValue = object->get(&lexicalGlobalObject, vm.propertyNames->name);
|
||||
RETURN_IF_EXCEPTION(throwScope, {});
|
||||
}
|
||||
if (!nameValue.isUndefined()) {
|
||||
@@ -85,7 +85,7 @@ JSC::JSObject* convertDictionaryToJS(JSC::JSGlobalObject& lexicalGlobalObject, J
|
||||
|
||||
auto nameValue = toJS<IDLDOMString>(lexicalGlobalObject, throwScope, dictionary.name);
|
||||
RETURN_IF_EXCEPTION(throwScope, {});
|
||||
result->putDirect(vm, JSC::Identifier::fromString(vm, "name"_s), nameValue);
|
||||
result->putDirect(vm, vm.propertyNames->name, nameValue);
|
||||
auto namedCurveValue = toJS<IDLDOMString>(lexicalGlobalObject, throwScope, dictionary.namedCurve);
|
||||
RETURN_IF_EXCEPTION(throwScope, {});
|
||||
result->putDirect(vm, JSC::Identifier::fromString(vm, "namedCurve"_s), namedCurveValue);
|
||||
|
||||
Reference in New Issue
Block a user