Clear T-18, T-34, T-54, T-55 on master (release note, test/ lint gate, Stage A fixes)
This commit is contained in:
parent
d9d49ebc22
commit
ade0a3ef1d
10 changed files with 74 additions and 23 deletions
|
|
@ -58,6 +58,7 @@ test('both copying paths reject lossy state without reading getters, even when f
|
|||
new Date(),
|
||||
Object.create(null),
|
||||
Object.create({ x: 1 }),
|
||||
// eslint-disable-next-line no-sparse-arrays
|
||||
[, 1],
|
||||
[undefined],
|
||||
extraArrayKey,
|
||||
|
|
@ -69,9 +70,9 @@ test('both copying paths reject lossy state without reading getters, even when f
|
|||
cyclic,
|
||||
];
|
||||
for (const copy of [stateCopy, frozenStateCopy]) {
|
||||
for (const value of invalid) expect(() => copy(value)).toThrow();
|
||||
for (const value of invalid) {expect(() => copy(value)).toThrow();}
|
||||
for (const value of [accessor, arrayAccessor, cyclic])
|
||||
expect(() => copy(Object.freeze(value))).toThrow();
|
||||
{expect(() => copy(Object.freeze(value))).toThrow();}
|
||||
}
|
||||
expect(reads).toBe(0);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue