add generator and variable binding tests

This commit is contained in:
guybedford 2015-01-21 13:58:49 +02:00
parent 194c080c64
commit 8023788305
4 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,3 @@
export function* generator() {
yield 1;
}

View File

@ -0,0 +1,23 @@
System.register([], function (_export) {
"use strict";
var generator;
_export("generator", generator = regeneratorRuntime.mark(function generator() {
return regeneratorRuntime.wrap(function generator$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return 1;
case 2:
case "end":
return context$1$0.stop();
}
}, generator, this);
}));
return {
setters: [],
execute: function () {
}
};
});

View File

@ -6,3 +6,4 @@ export let foo5;
export const foo6 = 3;
export function foo7 () {}
export class foo8 {}
foo3 = 5;

View File

@ -17,6 +17,8 @@ System.register([], function (_export) {
foo8 = function foo8() {};
_export("foo8", foo8);
_export("foo3", foo3 = 5);
}
};
});