aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/robertkrimen/otto/cmpl_parse.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2016-02-19 19:06:58 +0800
committerBas van Kervel <bas@ethdev.com>2016-02-19 19:55:31 +0800
commit6777531a2d3367ef3cee933d7a36945eecb37090 (patch)
treec07fe639278781727413c1d4cd340151959e3001 /Godeps/_workspace/src/github.com/robertkrimen/otto/cmpl_parse.go
parentaa36a6ae4f24f07e2c470a21c93ff37ad5861982 (diff)
downloadgo-tangerine-6777531a2d3367ef3cee933d7a36945eecb37090.tar.gz
go-tangerine-6777531a2d3367ef3cee933d7a36945eecb37090.tar.zst
go-tangerine-6777531a2d3367ef3cee933d7a36945eecb37090.zip
console: seed random number generator
Diffstat (limited to 'Godeps/_workspace/src/github.com/robertkrimen/otto/cmpl_parse.go')
-rw-r--r--Godeps/_workspace/src/github.com/robertkrimen/otto/cmpl_parse.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/robertkrimen/otto/cmpl_parse.go b/Godeps/_workspace/src/github.com/robertkrimen/otto/cmpl_parse.go
index e758a5230..f1e002d39 100644
--- a/Godeps/_workspace/src/github.com/robertkrimen/otto/cmpl_parse.go
+++ b/Godeps/_workspace/src/github.com/robertkrimen/otto/cmpl_parse.go
@@ -82,6 +82,9 @@ func (cmpl *_compiler) parseExpression(in ast.Expression) _nodeExpression {
identifier: in.Identifier.Name,
}
+ case *ast.EmptyExpression:
+ return nil
+
case *ast.FunctionLiteral:
name := ""
if in.Name != nil {