File: yield-precedence.js

package info (click to toggle)
node-escodegen 1.8.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,972 kB
  • ctags: 593
  • sloc: sh: 11; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 142 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
function *foo () {
  var a = yield wat(), b = 2;
  var c = yield a = b;
  yield a, yield b;
  yield a = b;
  return (yield 1) || (yield 2);
}