mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Normalize :: syntax (#5048)
* normalize :: syntax * fixes from code review
This commit is contained in:
committed by
Geoffrey Booth
parent
7dbdca8c54
commit
41185ca7ac
@@ -70,6 +70,12 @@ test "`?.` and `::` should continue lines", ->
|
||||
::
|
||||
?.foo
|
||||
)
|
||||
|
||||
ok not (
|
||||
Date
|
||||
?::
|
||||
?.foo
|
||||
)
|
||||
#eq Object::toString, Date?.
|
||||
#prototype
|
||||
#::
|
||||
|
||||
@@ -303,7 +303,16 @@ test "#2567: Optimization of negated existential produces correct result", ->
|
||||
|
||||
test "#2508: Existential access of the prototype", ->
|
||||
eq NonExistent?::nothing, undefined
|
||||
eq(
|
||||
NonExistent
|
||||
?::nothing
|
||||
undefined
|
||||
)
|
||||
ok Object?::toString
|
||||
ok(
|
||||
Object
|
||||
?::toString
|
||||
)
|
||||
|
||||
test "floor division operator", ->
|
||||
eq 2, 7 // 3
|
||||
|
||||
Reference in New Issue
Block a user