diff options
author | 2022-07-31 03:10:49 -0500 | |
---|---|---|
committer | 2022-07-31 01:10:49 -0700 | |
commit | af5a062424f187d0885040f429812d9f51bbb511 (patch) | |
tree | f778496b664c53500395a012461408713cbf6749 /src | |
parent | 8882e525393492734c7f45965e88efd8f3d5a720 (diff) | |
download | bun-af5a062424f187d0885040f429812d9f51bbb511.tar.gz bun-af5a062424f187d0885040f429812d9f51bbb511.tar.zst bun-af5a062424f187d0885040f429812d9f51bbb511.zip |
refactor(bunjs/bindings): code readability fix `functionLazyLoadStreamPrototypeMap_getter` (#926)
Diffstat (limited to 'src')
-rw-r--r-- | src/bun.js/bindings/ZigGlobalObject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bun.js/bindings/ZigGlobalObject.cpp b/src/bun.js/bindings/ZigGlobalObject.cpp index 7ce717cb6..faab35a28 100644 --- a/src/bun.js/bindings/ZigGlobalObject.cpp +++ b/src/bun.js/bindings/ZigGlobalObject.cpp @@ -380,9 +380,9 @@ void GlobalObject::setConsole(void* console) static JSC_DECLARE_HOST_FUNCTION(functionFulfillModuleSync); -JSC_DECLARE_CUSTOM_GETTER(functionLazyLoadStreamProtoypeMap_getter); +JSC_DECLARE_CUSTOM_GETTER(functionLazyLoadStreamPrototypeMap_getter); -JSC_DEFINE_CUSTOM_GETTER(functionLazyLoadStreamProtoypeMap_getter, +JSC_DEFINE_CUSTOM_GETTER(functionLazyLoadStreamPrototypeMap_getter, (JSC::JSGlobalObject * lexicalGlobalObject, JSC::EncodedJSValue thisValue, JSC::PropertyName)) { @@ -1916,7 +1916,7 @@ void GlobalObject::addBuiltinGlobals(JSC::VM& vm) putDirectCustomAccessor(vm, JSC::Identifier::fromString(vm, "URL"_s), JSC::CustomGetterSetter::create(vm, JSDOMURL_getter, nullptr), JSC::PropertyAttribute::DontDelete | 0); - putDirectCustomAccessor(vm, builtinNames.lazyStreamPrototypeMapPrivateName(), JSC::CustomGetterSetter::create(vm, functionLazyLoadStreamProtoypeMap_getter, nullptr), + putDirectCustomAccessor(vm, builtinNames.lazyStreamPrototypeMapPrivateName(), JSC::CustomGetterSetter::create(vm, functionLazyLoadStreamPrototypeMap_getter, nullptr), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | 0); putDirectCustomAccessor(vm, builtinNames.requireMapPrivateName(), JSC::CustomGetterSetter::create(vm, functionRequireMap_getter, nullptr), |