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,29 @@
class MyClassName {
m() {
throw new Error();
}
}
try {
new MyClassName().m();
fail('Should have thrown');
} catch (ex) {
if (ex.stack)
assert.isTrue(String(ex.stack).indexOf('MyClassName') >= 0);
}
//////////////////////////////////////////////////////////////////////////////
class MySecondClass extends MyClassName{
m() {
throw new Error();
}
}
try {
new MySecondClass().m();
fail('Should have thrown');
} catch (ex) {
if (ex.stack)
assert.isTrue(String(ex.stack).indexOf('MySecondClass') >= 0);
}