Skip to content

Commit 47fe5c2

Browse files
committed
more existential.
1 parent f7d19f5 commit 47fe5c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/nodes.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/nodes.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,9 +968,9 @@ exports.Assign = class Assign extends Base
968968
compileSplice: (o) ->
969969
{range: {from, to, exclusive}} = @variable.properties.pop()
970970
name = @variable.compile o
971-
[fromDecl, fromRef] = if from then from.cache(o, LEVEL_OP) else ['0', '0']
971+
[fromDecl, fromRef] = from?.cache(o, LEVEL_OP) or ['0', '0']
972972
if to
973-
if from and from.isSimpleNumber() and to.isSimpleNumber()
973+
if from?.isSimpleNumber() and to.isSimpleNumber()
974974
to = +to.compile(o) - +fromRef
975975
to += 1 unless exclusive
976976
else

0 commit comments

Comments
 (0)