Skip to content

Commit b3caa56

Browse files
committed
fix: fix crash for JS_IsAtomWideChar
1 parent 3216bf3 commit b3caa56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

quickjs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55493,6 +55493,8 @@ BOOL JS_IsStringWideChar(JSValueConst value) {
5549355493
}
5549455494

5549555495
BOOL JS_IsAtomWideChar(JSRuntime* runtime, JSAtom atom) {
55496+
if (__JS_AtomIsTaggedInt(atom)) return FALSE;
55497+
5549655498
JSString* string = runtime->atom_array[atom];
5549755499
return string->is_wide_char;
5549855500
}

0 commit comments

Comments
 (0)