Closed FrederikNJS closed 8 years ago
+1 very nice! @trentgrover-wf @evanweible-wf @jayudey-wf
Awesome! +1
Interestingly, the output is even better in another of my projects. I'm not sure why, but it might just be because there is more code. Here's an example:
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
SyntaxError: /home/frederiknjs/Code/personal/gw2map/javascript/model/region.js: Unexpected token (11:2)
9 | this._zones = regionDef.get('maps').valueSeq().map(mapDef=>new Zone(mapDef, iconUrls))
10 | this.name = regionDef.get('name').
> 11 | }
| ^
12 |
13 | get zones() {
14 | return this._zones.filter(zone => !this._Zone.falseZones.has(zone.id))
Error loading /home/frederiknjs/Code/personal/gw2map/javascript/model/region.js as "javascript/model/region" from /home/frederiknjs/Code/personal/gw2map/test/model/floor-spec.js
QA Resource Approval: +10
Merging into master.
Fixes #128
The issue in #128 was that if the
System.import()
function failed, then all the browsers would disconnect with a "Potentially unhandled rejection". This is mostly annoying forSyntaxErrors
.By catching the errors from System.import, and redirecting the message to karma.error(), karma-jspm is improved in the following ways:
Before a syntax error would result in the following output:
With this pull request, the output is instead:
Hope you like it :-)