update validation message

pull/854/head
Rich Harris 7 years ago
parent 58cc7f8ed1
commit d5ad4c007b

@ -34,7 +34,7 @@ export default function validateEventHandlerCallee(
)
return;
const validCallees = ['this.*', 'event.*'].concat(
const validCallees = ['this.*', 'event.*', 'console.*'].concat(
Array.from(validBuiltins),
Array.from(validator.methods.keys())
);

@ -1,5 +1,5 @@
[{
"message": "'foo' is an invalid callee (should be one of this.*, event.*, set, fire, destroy or bar). 'foo' exists on 'helpers', did you put it in the wrong place?",
"message": "'foo' is an invalid callee (should be one of this.*, event.*, console.*, set, fire, destroy or bar). 'foo' exists on 'helpers', did you put it in the wrong place?",
"pos": 18,
"loc": {
"line": 1,

@ -1,5 +1,5 @@
[{
"message": "'foo' is an invalid callee (should be one of this.*, event.*, set, fire, destroy or bar)",
"message": "'foo' is an invalid callee (should be one of this.*, event.*, console.*, set, fire, destroy or bar)",
"pos": 18,
"loc": {
"line": 1,

@ -1,5 +1,5 @@
[{
"message": "'resize' is an invalid callee (should be one of this.*, event.*, set, fire or destroy)",
"message": "'resize' is an invalid callee (should be one of this.*, event.*, console.*, set, fire or destroy)",
"loc": {
"line": 1,
"column": 20

Loading…
Cancel
Save