mirror of https://github.com/tc39/test262.git
Fix init values
This commit is contained in:
parent
cbea466883
commit
5783f55b70
|
@ -14,7 +14,7 @@ features: [logical-assignment-operators]
|
|||
|
||||
---*/
|
||||
|
||||
var value = 1;
|
||||
var value = undefined;
|
||||
value ??= () => {};
|
||||
|
||||
assert.sameValue(value.name, "value", "value");
|
||||
|
|
|
@ -14,7 +14,7 @@ features: [logical-assignment-operators]
|
|||
|
||||
---*/
|
||||
|
||||
var value = 1;
|
||||
var value = undefined;
|
||||
value ??= class {};
|
||||
|
||||
assert.sameValue(value.name, "value", "value");
|
||||
|
|
|
@ -14,7 +14,7 @@ features: [logical-assignment-operators]
|
|||
|
||||
---*/
|
||||
|
||||
var value = 1;
|
||||
var value = undefined;
|
||||
value ??= function() {};
|
||||
|
||||
assert.sameValue(value.name, "value", "value");
|
||||
|
|
|
@ -14,7 +14,7 @@ features: [logical-assignment-operators]
|
|||
|
||||
---*/
|
||||
|
||||
var value = 1;
|
||||
var value = 0;
|
||||
value ||= () => {};
|
||||
|
||||
assert.sameValue(value.name, "value", "value");
|
||||
|
|
|
@ -14,7 +14,7 @@ features: [logical-assignment-operators]
|
|||
|
||||
---*/
|
||||
|
||||
var value = 1;
|
||||
var value = 0;
|
||||
value ||= class {};
|
||||
|
||||
assert.sameValue(value.name, "value", "value");
|
||||
|
|
|
@ -14,7 +14,7 @@ features: [logical-assignment-operators]
|
|||
|
||||
---*/
|
||||
|
||||
var value = 1;
|
||||
var value = 0;
|
||||
value ||= function() {};
|
||||
|
||||
assert.sameValue(value.name, "value", "value");
|
||||
|
|
Loading…
Reference in New Issue