Skip to content

Commit b4ff802

Browse files
committed
feat(deps): update Traceur 0.0.74
1 parent a1c6f1b commit b4ff802

5 files changed

Lines changed: 14 additions & 3 deletions

File tree

karma-js.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = function(config) {
1414
{pattern: 'tools/transpiler/**', included: false},
1515

1616
'node_modules/traceur/bin/traceur-runtime.js',
17+
'traceur-runtime-patch.js',
1718
'node_modules/es6-module-loader/dist/es6-module-loader-sans-promises.src.js',
1819
// Including systemjs because it defines `__eval`, which produces correct stack traces.
1920
'node_modules/systemjs/dist/system.src.js',

modules/rtts_assert/src/rtts_assert.es6

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ function prettyPrint(value) {
6262
}
6363

6464
if (typeof value === 'object') {
65+
if (value.__assertName) {
66+
return value.__assertName;
67+
}
68+
6569
if (value.map) {
6670
return '[' + value.map(prettyPrint).join(', ') + ']';
6771
}

modules/rtts_assert/test/rtts_assert_spec.es6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,13 +361,13 @@ describe('Traceur', function() {
361361

362362
it('should fail when a value returned', function() {
363363
expect(() => foo('bar'))
364-
.toThrowError('Expected to return an instance of voidType, got "bar"!');
364+
.toThrowError('Expected to return an instance of void, got "bar"!');
365365
});
366366

367367

368368
it('should fail when null returned', function() {
369369
expect(() => foo(null))
370-
.toThrowError('Expected to return an instance of voidType, got null!');
370+
.toThrowError('Expected to return an instance of void, got null!');
371371
});
372372
});
373373
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"run-sequence": "^0.3.6",
3131
"glob": "^4.0.6",
3232
"gulp-ejs": "^0.3.1",
33-
"traceur": "0.0.66"
33+
"traceur": "0.0.74"
3434
}
3535
}

traceur-runtime-patch.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(function(type) {
2+
Object.keys(type).forEach(function(name) {
3+
type[name].__assertName = name;
4+
});
5+
})(window.$traceurRuntime.type);
6+

0 commit comments

Comments
 (0)