tested a simple generator on nodejs (compiling using --modules=commonjs)
require('traceur/bin/traceur-runtime');
function* range(begin, end) {
for (var i = begin; i <= end; ++i) {
yield i;
}
}
the generated code was:
"use strict";
var $__0 = $traceurRuntime.initGeneratorFunction(range);
require('traceur/bin/traceur-runtime');
function range(begin, end) {
var i;
return $traceurRuntime.createGeneratorInstance(function($ctx) {
while (true)
...
this throws ReferenceError: $traceurRuntime is not defined
(can bypass this by including the runtime in a pre-required file, but it is annoying when testing a single file)