We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605cf55 commit e93b40cCopy full SHA for e93b40c
include/CppObjectMapperQuickjs.h
@@ -93,8 +93,9 @@ struct CppObjectMapper
93
94
inline bool GetPrivate(JSValue val, void** outPrr) const
95
{
96
- if (!JS_IsObject(val))
+ if (!JS_IsObject(val) || !JS_IsExtensible(ctx, val))
97
98
+ *outPrr = nullptr;
99
return false;
100
}
101
@@ -113,7 +114,7 @@ struct CppObjectMapper
113
114
115
inline bool SetPrivate(JSValue val, void* ptr)
116
117
118
119
120
0 commit comments