mirror of
https://github.com/tc39/test262.git
synced 2025-05-21 15:20:29 +02:00
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…
x
Reference in New Issue
Block a user