Fix #5112: A string of ', ' in an array should not be detected as an elision (#5113)

This commit is contained in:
Geoffrey Booth
2018-10-05 06:45:54 -07:00
committed by GitHub
parent 6e86b67818
commit 294bb4754e
3 changed files with 14 additions and 7 deletions

View File

@@ -115,6 +115,12 @@ test "array elisions nested destructuring", ->
deepEqual d, {x:2}
arrayEq w, [1,2,4]
test "#5112: array elisions not detected inside strings", ->
arr = [
str: ", #{3}"
]
eq arr[0].str, ', 3'
# Splats in Array Literals
test "array splat expansions with assignments", ->