File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ func (c *compiler) BinaryNode(node *ast.BinaryNode) {
446
446
c .emit (OpNot )
447
447
448
448
case "or" , "||" :
449
- if c .config .DisableSC {
449
+ if c .config != nil && c . config .DisableSC {
450
450
c .compile (node .Left )
451
451
c .derefInNeeded (node .Left )
452
452
c .compile (node .Right )
@@ -463,7 +463,7 @@ func (c *compiler) BinaryNode(node *ast.BinaryNode) {
463
463
c .patchJump (end )
464
464
465
465
case "and" , "&&" :
466
- if c .config .DisableSC {
466
+ if c .config != nil && c . config .DisableSC {
467
467
c .compile (node .Left )
468
468
c .derefInNeeded (node .Left )
469
469
c .compile (node .Right )
Original file line number Diff line number Diff line change @@ -372,6 +372,12 @@ func (program *Program) DisassembleWriter(w io.Writer) {
372
372
case OpBegin :
373
373
code ("OpBegin" )
374
374
375
+ case OpAnd :
376
+ code ("OpAnd" )
377
+
378
+ case OpOr :
379
+ code ("OpOr" )
380
+
375
381
case OpEnd :
376
382
code ("OpEnd" )
377
383
You can’t perform that action at this time.
0 commit comments