Fix init values

This commit is contained in:
Justin Ridgewell 2020-06-05 02:00:34 -04:00 committed by Rick Waldron
parent cbea466883
commit 5783f55b70
6 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ features: [logical-assignment-operators]
---*/
var value = 1;
var value = undefined;
value ??= () => {};
assert.sameValue(value.name, "value", "value");

View File

@ -14,7 +14,7 @@ features: [logical-assignment-operators]
---*/
var value = 1;
var value = undefined;
value ??= class {};
assert.sameValue(value.name, "value", "value");

View File

@ -14,7 +14,7 @@ features: [logical-assignment-operators]
---*/
var value = 1;
var value = undefined;
value ??= function() {};
assert.sameValue(value.name, "value", "value");

View File

@ -14,7 +14,7 @@ features: [logical-assignment-operators]
---*/
var value = 1;
var value = 0;
value ||= () => {};
assert.sameValue(value.name, "value", "value");

View File

@ -14,7 +14,7 @@ features: [logical-assignment-operators]
---*/
var value = 1;
var value = 0;
value ||= class {};
assert.sameValue(value.name, "value", "value");

View File

@ -14,7 +14,7 @@ features: [logical-assignment-operators]
---*/
var value = 1;
var value = 0;
value ||= function() {};
assert.sameValue(value.name, "value", "value");