pearsonjohn / js-addin

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

Doesn't support property getters and setters #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
Create a js class that includes property getters/setters:

var test = function () { };
test.prototype = {
    get value() {
        return _value;
    },
    set value(val) {
        _value = val;
    }
};

What is the expected output? What do you see instead?

This is valid js syntax and we should see no errors.  Instead, it erroneously 
reports multiple errors:

Colon Expected. Line 3
Syntax Error.  Line 5
Syntax Error.  Line 8
Syntax Error.  Line 9

What version of the product are you using? On what operating system?

Javascript Parser Version 3.6, Visual Studio 2012 Ultimate, Windows 7 Home 
Premium

Please provide any additional information below.

Original issue reported on code.google.com by leegreco...@gmail.com on 14 May 2013 at 2:29