diff options
author | 2022-07-14 06:32:46 +0900 | |
---|---|---|
committer | 2022-07-13 23:32:46 +0200 | |
commit | 4b271ee4307b341e58358fc4b4fe677c1f383765 (patch) | |
tree | 8d3abaa9f6f81c348b6f8491953c11a08c6e5825 /src | |
parent | 6e4e5fa94c8d288d922b7e274661d31cfd1c844d (diff) | |
download | bun-4b271ee4307b341e58358fc4b4fe677c1f383765.tar.gz bun-4b271ee4307b341e58358fc4b4fe677c1f383765.tar.zst bun-4b271ee4307b341e58358fc4b4fe677c1f383765.zip |
fix(napi): gurantee -> guarantee (#683)
Diffstat (limited to 'src')
-rw-r--r-- | src/bun.js/bindings/napi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/bindings/napi.cpp b/src/bun.js/bindings/napi.cpp index 5ed1ef142..88a491e97 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<const LChar*>(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 +} |