add support for ClassDeclaration and FunctionDeclaration read-only checking - fixes #53

This commit is contained in:
Sebastian McKenzie
2014-10-13 03:25:48 +11:00
parent 52d4d73f0b
commit 38fc5159a3
5 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
const MULTIPLIER = 5;
class MULTIPLIER {
}

View File

@@ -0,0 +1,3 @@
{
"throws": "MULTIPLIER is read-only"
}

View File

@@ -0,0 +1,5 @@
const MULTIPLIER = 5;
function MULTIPLIER() {
}

View File

@@ -0,0 +1,3 @@
{
"throws": "MULTIPLIER is read-only"
}