mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Whitespace clean-up.
This commit is contained in:
parent
8ade4f1077
commit
0ca255b7b8
2 changed files with 12 additions and 12 deletions
|
@ -253,20 +253,20 @@ test "#1871: Special case for IMPLICIT_END in the middle of an implicit object",
|
|||
eq result.two.join(' '), '2 2 2'
|
||||
|
||||
test "#1961, #1974, regression with compound assigning to an implicit object", ->
|
||||
|
||||
|
||||
obj = null
|
||||
|
||||
obj ?=
|
||||
|
||||
obj ?=
|
||||
one: 1
|
||||
two: 2
|
||||
|
||||
|
||||
eq obj.two, 2
|
||||
|
||||
|
||||
obj = null
|
||||
|
||||
obj or=
|
||||
three: 3
|
||||
four: 4
|
||||
|
||||
|
||||
eq obj.four, 4
|
||||
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ test "octal integer literals prohibited", ->
|
|||
strict '01'
|
||||
strict '07777'
|
||||
# decimals with a leading '0' are also prohibited
|
||||
strict '09'
|
||||
strict '09'
|
||||
strict '079'
|
||||
strictOk '`01`'
|
||||
|
||||
|
@ -45,7 +45,7 @@ test "octal escape sequences prohibited", ->
|
|||
strictOk '"\\\\0"'
|
||||
strictOk '"\\\\\\\\0"'
|
||||
strictOk "`'\\0'`"
|
||||
|
||||
|
||||
|
||||
test "duplicate property definitions in object literals are prohibited", ->
|
||||
strict 'o = {x:1,x:1}'
|
||||
|
@ -120,7 +120,7 @@ test "`Future Reserved Word`s, `eval` and `arguments` restrictions", ->
|
|||
destruct = (keyword, check = strict) ->
|
||||
check "{#{keyword}}"
|
||||
check "o = {#{keyword}}"
|
||||
invoke = (keyword, check = strict) ->
|
||||
invoke = (keyword, check = strict) ->
|
||||
check "#{keyword} yes"
|
||||
check "do #{keyword}"
|
||||
fnDecl = (keyword, check = strict) ->
|
||||
|
@ -130,7 +130,7 @@ test "`Future Reserved Word`s, `eval` and `arguments` restrictions", ->
|
|||
check "({#{keyword}}) ->"
|
||||
prop = (keyword, check = strict) ->
|
||||
check "a.#{keyword} = 1"
|
||||
tryCatch = (keyword, check = strict) ->
|
||||
tryCatch = (keyword, check = strict) ->
|
||||
check "try new Error catch #{keyword}"
|
||||
|
||||
future = 'implements interface let package private protected public static yield'.split ' '
|
||||
|
@ -143,7 +143,7 @@ test "`Future Reserved Word`s, `eval` and `arguments` restrictions", ->
|
|||
param keyword
|
||||
prop keyword, strictOk
|
||||
tryCatch keyword
|
||||
|
||||
|
||||
for keyword in ['eval', 'arguments']
|
||||
access keyword, strictOk
|
||||
assign keyword
|
||||
|
|
Loading…
Add table
Reference in a new issue