Fixed typo in calling a function in Constants autovalue

This commit is contained in:
Stefan Zermatten
2021-02-16 11:19:50 +02:00
parent e3862bcdd9
commit 6113d86059

View File

@@ -46,7 +46,7 @@ let ConstantSchema = new SimpleSchema({
// Ban variables in constants if necessary
result && result.traverse(node => {
if (node instanceof SymbolNode || node instanceof AccessorNode){
context.storeError()({
context.storeError({
type: 'error',
message: 'Variables can\'t be used to define a constant'
});