feat: add weakRef
This commit is contained in:
parent
587afcfd42
commit
58abf2a811
8 changed files with 89 additions and 12 deletions
10
test/test.ts
10
test/test.ts
|
|
@ -343,6 +343,14 @@ const types = new Map<string, Test>([
|
|||
],
|
||||
typename: 'WeakMap'
|
||||
}],
|
||||
['weakSet', {
|
||||
is: is.weakRef,
|
||||
assert: assert.weakRef,
|
||||
fixtures: [
|
||||
new window.WeakRef({})
|
||||
],
|
||||
typename: 'WeakRef'
|
||||
}],
|
||||
['int8Array', {
|
||||
is: is.int8Array,
|
||||
assert: assert.int8Array,
|
||||
|
|
@ -1203,7 +1211,7 @@ test('is.arrayLike', t => {
|
|||
t.false(is.arrayLike(new Map()));
|
||||
|
||||
(function () {
|
||||
t.notThrows(() => {
|
||||
t.notThrows(function () {
|
||||
assert.arrayLike(arguments); // eslint-disable-line prefer-rest-params
|
||||
});
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue