forked from mirror/go-json
Compare commits
3 Commits
master
...
feature/fi
Author | SHA1 | Date |
---|---|---|
Masaaki Goshima | 455da738a8 | |
Masaaki Goshima | 3f3c05827c | |
Masaaki Goshima | afef1e7140 |
|
@ -50,6 +50,18 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
ctxptr := ctx.Ptr()
|
||||
code := codeSet.Code
|
||||
|
||||
defer func() {
|
||||
if err := recover(); err != nil {
|
||||
fmt.Println("error occurred", err)
|
||||
fmt.Println(codeSet.Code.Dump())
|
||||
fmt.Printf("code = %+v\n", code)
|
||||
fmt.Printf("ctx = %+v\n", ctx)
|
||||
fmt.Println("b = ", string(b))
|
||||
fmt.Println("code.op = ", code.Op, "idx = ", code.DisplayIdx, "p = ", load(ctxptr, code.Idx))
|
||||
panic(err)
|
||||
}
|
||||
}()
|
||||
|
||||
for {
|
||||
switch code.Op {
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue