From d3a3a8e1fc9c628f76bcb38777bda4b69a681884 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Mon, 23 Jan 2017 11:23:15 -0800 Subject: [PATCH] fix(core): fix not declared variable in view engine (#14045) In TypeScript, referring to `name` does not lead to an error as `window` also has a property `name`. --- modules/@angular/core/src/view/provider.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/@angular/core/src/view/provider.ts b/modules/@angular/core/src/view/provider.ts index 3fc2bb1657..88fc8afda2 100644 --- a/modules/@angular/core/src/view/provider.ts +++ b/modules/@angular/core/src/view/provider.ts @@ -241,7 +241,8 @@ function checkAndUpdateProp( provider[propName] = value; if (view.def.flags & ViewFlags.LogBindingUpdate) { - setBindingDebugInfo(view.renderer, view.nodes[def.parent].renderNode, name, value); + setBindingDebugInfo( + view.renderer, view.nodes[def.parent].renderNode, binding.nonMinifiedName, value); } if (change) { changes = changes || {};