From 4b271ee4307b341e58358fc4b4fe677c1f383765 Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Thu, 14 Jul 2022 06:32:46 +0900 Subject: [PATCH] fix(napi): gurantee -> guarantee (#683) --- src/bun.js/bindings/napi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bun.js/bindings/napi.cpp b/src/bun.js/bindings/napi.cpp index 5ed1ef142f..88a491e974 100644 --- a/src/bun.js/bindings/napi.cpp +++ b/src/bun.js/bindings/napi.cpp @@ -420,7 +420,7 @@ extern "C" napi_status napi_set_named_property(napi_env env, napi_value object, // This is more efficient than using WTF::String::FromUTF8 // it doesn't copy the string // but it's only safe to use if we are not setting a property -// because we can't gurantee the lifetime of it +// because we can't guarantee the lifetime of it #define PROPERTY_NAME_FROM_UTF8(identifierName) \ size_t utf8Len = strlen(utf8name); \ JSC::PropertyName identifierName = LIKELY(charactersAreAllASCII(reinterpret_cast(utf8name), utf8Len)) ? JSC::PropertyName(JSC::Identifier::fromString(vm, WTF::String(WTF::StringImpl::createWithoutCopying(utf8name, utf8Len)))) : JSC::PropertyName(JSC::Identifier::fromString(vm, WTF::String::fromUTF8(utf8name))); @@ -1317,4 +1317,4 @@ extern "C" napi_status napi_get_property_names(napi_env env, napi_value object, *result = toNapi(value); return napi_ok; -} \ No newline at end of file +}