Skip to content

Commit 828e64b

Browse files
authored
[CHANGES.md] replace bitwise-OR with logical-OR for expando declarations (#2268)
1 parent b0476e0 commit 828e64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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. |

0 commit comments

Comments
 (0)