File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ f.called = false;
5151
5252| Name | Example | Substitute | Note |
5353| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
54- | Fallback initialisers | ` f.x = f.x \| init ` | ` if (!f.x) f.x = init ` | |
54+ | Fallback initialisers | ` f.x = f.x \|\| init ` | ` if (!f.x) f.x = init ` | |
5555| Nested, undeclared expandos | <pre ><code >var N = {};</code ><br /><code >N.X.Y = {}</code ></pre > | <pre ><code >var N = {};</code ><br /><code >N.X = {};</code ><br /><code >N.X.Y = {}</code ></pre > | All intermediate expandos have to be assigned. Closure feature. |
5656| Constructor function whole-prototype assignment | <pre ><code >C.prototype = {</code ><br /> <code >m: function() { }</code ><br /> <code >n: function() { }</code ><br /><code >}</code ></pre > | <pre ><code >C.prototype.m = function() { }</code ><br /><code >C.prototype.n = function() { }</code ></pre > | Constructor function feature. See note at end. |
5757| Identifier declarations | <pre ><code >class C {</code ><br /> <code >constructor() {</code ><br /> <code >/\* * @type {T} * /</code ><br /> <code >identifier;</code ><br /> <code >}</code ><br /><code >}</code ></pre > | <pre ><code >class C {</code ><br /> <code >/\* * @type {T} * /</code ><br /> <code >identifier;</code ><br /> <code >constructor() { }</code ><br /><code >}</code ></pre > | Closure feature. |
You can’t perform that action at this time.
0 commit comments