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,11 @@
assert.throw(function() {
class C extends Math {}
}, 'Super expression must either be null or a function');
assert.throw(function() {
function f() {}
// prototype needs to be an Object or null.
f.prototype = 42;
class C extends f {}
}, 'super prototype must be an Object or null');