feat(deps): update Traceur 0.0.74
This commit is contained in:
parent
a1c6f1bbe9
commit
b4ff802e28
|
@ -14,6 +14,7 @@ module.exports = function(config) {
|
||||||
{pattern: 'tools/transpiler/**', included: false},
|
{pattern: 'tools/transpiler/**', included: false},
|
||||||
|
|
||||||
'node_modules/traceur/bin/traceur-runtime.js',
|
'node_modules/traceur/bin/traceur-runtime.js',
|
||||||
|
'traceur-runtime-patch.js',
|
||||||
'node_modules/es6-module-loader/dist/es6-module-loader-sans-promises.src.js',
|
'node_modules/es6-module-loader/dist/es6-module-loader-sans-promises.src.js',
|
||||||
// Including systemjs because it defines `__eval`, which produces correct stack traces.
|
// Including systemjs because it defines `__eval`, which produces correct stack traces.
|
||||||
'node_modules/systemjs/dist/system.src.js',
|
'node_modules/systemjs/dist/system.src.js',
|
||||||
|
|
|
@ -62,6 +62,10 @@ function prettyPrint(value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof value === 'object') {
|
if (typeof value === 'object') {
|
||||||
|
if (value.__assertName) {
|
||||||
|
return value.__assertName;
|
||||||
|
}
|
||||||
|
|
||||||
if (value.map) {
|
if (value.map) {
|
||||||
return '[' + value.map(prettyPrint).join(', ') + ']';
|
return '[' + value.map(prettyPrint).join(', ') + ']';
|
||||||
}
|
}
|
||||||
|
|
|
@ -361,13 +361,13 @@ describe('Traceur', function() {
|
||||||
|
|
||||||
it('should fail when a value returned', function() {
|
it('should fail when a value returned', function() {
|
||||||
expect(() => foo('bar'))
|
expect(() => foo('bar'))
|
||||||
.toThrowError('Expected to return an instance of voidType, got "bar"!');
|
.toThrowError('Expected to return an instance of void, got "bar"!');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should fail when null returned', function() {
|
it('should fail when null returned', function() {
|
||||||
expect(() => foo(null))
|
expect(() => foo(null))
|
||||||
.toThrowError('Expected to return an instance of voidType, got null!');
|
.toThrowError('Expected to return an instance of void, got null!');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -30,6 +30,6 @@
|
||||||
"run-sequence": "^0.3.6",
|
"run-sequence": "^0.3.6",
|
||||||
"glob": "^4.0.6",
|
"glob": "^4.0.6",
|
||||||
"gulp-ejs": "^0.3.1",
|
"gulp-ejs": "^0.3.1",
|
||||||
"traceur": "0.0.66"
|
"traceur": "0.0.74"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
(function(type) {
|
||||||
|
Object.keys(type).forEach(function(name) {
|
||||||
|
type[name].__assertName = name;
|
||||||
|
});
|
||||||
|
})(window.$traceurRuntime.type);
|
||||||
|
|
Loading…
Reference in New Issue