Skip to content

Commit 86b0dd3

Browse files
author
David Neil
committed
Elevate binding runtime warning to runtime error
1 parent c17c2fa commit 86b0dd3

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

patches/@angular+core+13.0.2.patch

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/node_modules/@angular/core/core.d.ts b/node_modules/@angular/core/core.d.ts
2-
index 3faf34d..eb9a632 100755
2+
index 3faf34d..f150095 100755
33
--- a/node_modules/@angular/core/core.d.ts
44
+++ b/node_modules/@angular/core/core.d.ts
55
@@ -1619,7 +1619,7 @@ export declare function createPlatform(injector: Injector): PlatformRef;
@@ -39,7 +39,7 @@ index 3faf34d..eb9a632 100755
3939
readonly prototype: EventEmitter<any>;
4040
};
4141
diff --git a/node_modules/@angular/core/fesm2015/core.mjs b/node_modules/@angular/core/fesm2015/core.mjs
42-
index 14dbdf6..4359a63 100755
42+
index 14dbdf6..9439a21 100755
4343
--- a/node_modules/@angular/core/fesm2015/core.mjs
4444
+++ b/node_modules/@angular/core/fesm2015/core.mjs
4545
@@ -485,24 +485,28 @@ const NG_INJECTOR_DEF = getClosureSafeProperty({ ngInjectorDef: getClosureSafePr
@@ -316,7 +316,15 @@ index 14dbdf6..4359a63 100755
316316

317317
/**
318318
* @license
319-
@@ -18885,31 +18911,52 @@ function unregisterAllLocaleData() {
319+
@@ -10146,6 +10172,7 @@ function matchingSchemas(tView, tagName) {
320+
function logUnknownPropertyError(propName, tNode) {
321+
let message = `Can't bind to '${propName}' since it isn't a known property of '${tNode.value}'.`;
322+
console.error(formatRuntimeError("303" /* UNKNOWN_BINDING */, message));
323+
+ throw new Error(message);
324+
}
325+
/**
326+
* Instantiate a root component.
327+
@@ -18885,31 +18912,52 @@ function unregisterAllLocaleData() {
320328
/**
321329
* Index of each type of locale data from the locale data array
322330
*/
@@ -394,7 +402,7 @@ index 14dbdf6..4359a63 100755
394402
/**
395403
* Returns the canonical form of a locale name - lowercase with `_` replaced with `-`.
396404
*/
397-
@@ -18969,23 +19016,25 @@ const ICU_MARKER = {
405+
@@ -18969,23 +19017,25 @@ const ICU_MARKER = {
398406
/**
399407
* See `I18nCreateOpCodes`
400408
*/
@@ -427,7 +435,7 @@ index 14dbdf6..4359a63 100755
427435
// failure based on types.
428436
const unusedValueExportToPlacateAjd$2 = 1;
429437

430-
@@ -25350,12 +25399,14 @@ const TRANSLATIONS_FORMAT = new InjectionToken('TranslationsFormat');
438+
@@ -25350,12 +25400,14 @@ const TRANSLATIONS_FORMAT = new InjectionToken('TranslationsFormat');
431439
*
432440
* @publicApi
433441
*/
@@ -448,7 +456,7 @@ index 14dbdf6..4359a63 100755
448456

449457
/**
450458
* @license
451-
@@ -26344,18 +26395,18 @@ function createPlatform(injector) {
459+
@@ -26344,18 +26396,18 @@ function createPlatform(injector) {
452460
function createPlatformFactory(parentPlatformFactory, name, providers = []) {
453461
const desc = `Platform: ${name}`;
454462
const marker = new InjectionToken(desc);
@@ -470,7 +478,7 @@ index 14dbdf6..4359a63 100755
470478
}
471479
}
472480
return assertPlatform(marker);
473-
@@ -32014,15 +32065,20 @@ function destroyViewNodes(view) {
481+
@@ -32014,15 +32066,20 @@ function destroyViewNodes(view) {
474482
}
475483
}
476484
}
@@ -500,7 +508,7 @@ index 14dbdf6..4359a63 100755
500508
function execComponentViewsAction(view, action) {
501509
const def = view.def;
502510
if (!(def.nodeFlags & 33554432 /* ComponentView */)) {
503-
@@ -32430,14 +32486,18 @@ function debugCheckNoChangesView(view) {
511+
@@ -32430,14 +32487,18 @@ function debugCheckNoChangesView(view) {
504512
function debugDestroyView(view) {
505513
return callWithDebugContext(DebugAction.destroy, destroyView, null, [view]);
506514
}

0 commit comments

Comments
 (0)