From 3317eb3a428084dafbf21ddaa3c4e22a5e7f96dd Mon Sep 17 00:00:00 2001 From: bluwy Date: Wed, 19 Jan 2022 11:33:08 +0800 Subject: [PATCH] fix invalid binding error report --- src/compiler/compile/nodes/Element.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index 7f0a8efd21..c79ae96288 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -735,11 +735,6 @@ export default class Element extends Node { return component.error(contenteditable, compiler_errors.dynamic_contenteditable_attribute); } } else if (name !== 'this' && !sizing.test(name)) { - component.error(binding, { - code: 'invalid-binding', - message: `'${binding.name}' is not a valid binding` - }); - } else if (name !== 'this') { return component.error(binding, compiler_errors.invalid_binding(binding.name)); } });