-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Please provide us with the following information:
OS?
Windows 7
Versions.
angular-cli: 1.0.0-beta.16
node: 6.6.0
os: win32 x64
Repro steps.
- Create a new CLI project from scratch.
- Add the following to app.component.ts:
constructor() {
console.log('Handle1', {id: 123, version: 4});
console.log('Handle2', {id: 123, verion: 4});
}- run
ng test - You'll see that the second console logging statement prints, but the first doesn't.
The log given by the failure.
No logging - that's the problem.
Mention any other details that might be useful.
The original manifestation of this problem was that I put an object that looks like one of the objects above in an Immutable.js List, but then almost all of the methods on the List failed (i.e. console.log(list.toArray()) never printed). Eventually, I was able to reproduce it in the simpler form that seemingly just the word "version" as a property name caused problems.
This has happened on two machines, one using the chrome launcher and one using the firefox launcher. I don't see the problem by trying to log a similar object literal in the node REPL, the Chrome console, or the Firefox console.
I don't have the problem running the application in the browser - just in the karma test.