Skip to content

Commit 75eb986

Browse files
committed
fix(libquickjs-sys): handle JS value tag retrieval based on NAN boxing configuration
1 parent db5d124 commit 75eb986

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libquickjs-sys/embed/static-functions.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77

88
int JS_ValueGetTag_real(JSValue v)
99
{
10+
#ifdef JS_NAN_BOXING
11+
return JS_VALUE_GET_NORM_TAG(v);
12+
#else
1013
return JS_VALUE_GET_TAG(v);
14+
#endif
1115
}
1216

1317
// used to generate following values:

0 commit comments

Comments
 (0)