Better check for lib has only functions (fix #138)

This commit is contained in:
Nicolas Williams committed 2014-07-07 16:03:32 -05:00
1 parent 821cd31e67
commit 8780bc0b8e
5 files changed
+23 -3

No files matched your search

+2
View File
@@ -315,6 +315,8 @@ jv jq_next(jq_state *jq) {
switch (opcode) {
default: assert(0 && "invalid instruction");
case TOP: break;
case LOADK: {
jv v = jv_array_get(jv_copy(frame_current(jq)->bc->constants), *pc++);
assert(jv_is_valid(v));