Fix assert fail if object literal key is not a string (fix #953)
This commit is contained in:
1 parent
83ab4e273b
commit
154d0ee4a8
5 files changed
+455
-399
No files matched your search
@@ -595,6 +595,10 @@ block gen_const_object(block expr) {
|
||||
is_const = 0;
|
||||
break;
|
||||
}
|
||||
if (jv_get_kind(k) != JV_KIND_STRING) {
|
||||
is_const = 0;
|
||||
break;
|
||||
}
|
||||
o = jv_object_set(o, k, v);
|
||||
k = jv_null();
|
||||
v = jv_null();
|
||||
|
||||
Reference in new issue
Block a user