add traceur test suite

This commit is contained in:
Sebastian McKenzie
2015-01-04 19:40:09 +11:00
parent 18813f26bb
commit 6a35bdb42b
495 changed files with 9831 additions and 360 deletions

View File

@@ -0,0 +1,12 @@
// Options: --array-comprehension
// https://github.com/google/traceur-compiler/issues/1086
function f() {
var a = [for (x of [1]) arguments[0]];
var b = [for (x of [1]) arguments[0]];
assert.deepEqual(a, [arguments[0]]);
assert.deepEqual(a, [42]);
assert.deepEqual(a, b);
}
f(42);