Skip to content

Commit 5dc444b

Browse files
committed
fix: #42
1 parent 826abbb commit 5dc444b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ps.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ func Interpret(strm Value, do func(stk *Stack, op string)) {
123123
val := stk.Pop()
124124
key, ok := stk.Pop().data.(name)
125125
if !ok {
126-
panic("def of non-name")
126+
// panic(fmt.Sprintf("def of non-name: %+v", stk.Pop().data))
127+
// Skip the value if it has key without value
128+
continue
127129
}
128130
dicts[len(dicts)-1][key] = val.data
129131
continue

0 commit comments

Comments
 (0)