add support for ClassDeclaration and FunctionDeclaration read-only checking - fixes #53
This commit is contained in:
5
test/fixtures/syntax/constants/no-classes/actual.js
vendored
Normal file
5
test/fixtures/syntax/constants/no-classes/actual.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
const MULTIPLIER = 5;
|
||||
|
||||
class MULTIPLIER {
|
||||
|
||||
}
|
||||
3
test/fixtures/syntax/constants/no-classes/options.json
vendored
Normal file
3
test/fixtures/syntax/constants/no-classes/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "MULTIPLIER is read-only"
|
||||
}
|
||||
5
test/fixtures/syntax/constants/no-functions/actual.js
vendored
Normal file
5
test/fixtures/syntax/constants/no-functions/actual.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
const MULTIPLIER = 5;
|
||||
|
||||
function MULTIPLIER() {
|
||||
|
||||
}
|
||||
3
test/fixtures/syntax/constants/no-functions/options.json
vendored
Normal file
3
test/fixtures/syntax/constants/no-functions/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "MULTIPLIER is read-only"
|
||||
}
|
||||
Reference in New Issue
Block a user