Skleroz / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Code Coverage lexical analyzer does not understand "var hi = new function () {};" #425

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a js file with the following text:
var test = new function () {
    this.member = 1;
};

2. Run a test case with the code coverage plugin

What is the expected output? What do you see instead?
The code is expected to be parsed correctly to insert code coverage counters. 
The actual output puts a counter in between the closing } and the semicolon, 
causing js error.

What version of the product are you using? On what operating system?
code coverage 1.3.5 on Windows Operating system.

Please provide any additional information below.

Original issue reported on code.google.com by chrismic...@gmail.com on 23 Feb 2013 at 1:05

GoogleCodeExporter commented 9 years ago
Looks like potential duplicate of 205.

Original comment by chrismic...@gmail.com on 26 Feb 2013 at 12:48