   arrayEq y.value, [1, 2]
   ok y.done is true
 
-test "empty generator", ->
-  x = do -> yield return
-
-  y = x.next()
-  ok y.value is undefined and y.done is true
-
-test "`yield` by itself not at the end of a function errors", ->
-  throws -> CoffeeScript.compile 'x = -> yield; return'
+test "error if `yield from` occurs outside of a function", ->
+  throws -> CoffeeScript.compile 'yield from 1'
 
 test "`yield from` at the end of a function errors", ->
   throws -> CoffeeScript.compile 'x = -> x = 1; yield from'

#
# * Generator Definition

test "generator as argument", ->
  ok -> yield 0

test "generator definition", ->
  x = do ->
    yield 0
    yield 1
    yield 2
  y = x.next()
  ok y.value is 0 and y.done is false
  y = x.next()
  ok y.value is 1 and y.done is false
  y = x.next()
  ok y.value is 2 and y.done is false
  y = x.next()
  ok y.value is undefined and y.done is true

test "bound generator", ->
  obj =

test "error if `yield` occurs outside of a function", ->
  throws -> CoffeeScript.compile 'yield 1'

test "`yield` by itself not at the end of a function errors", ->
  throws -> CoffeeScript.compile 'x = -> yield; return'

test "`yield from` support", ->
  x = do ->
