text: import { STRICT } from '../helpers/constants';
  
  import fill from 'core-js-pure/features/array/fill';
  
  QUnit.test('Array#fill', assert => {
    assert.isFunction(fill);
    const array = fill(Array(5), 5);
    assert.strictEqual(array, array);
    assert.deepEqual(fill(Array(5), 5), [5, 5, 5, 5, 5]);
    assert.deepEqual(fill(Array(5), 5, 1), [undefined, 5, 5, 5, 5]);
    assert.deepEqual(fill(Array(5), 5, 1, 4), [undefined, 5, 5, 5, undefined]);
    assert.deepEqual(fill(Array(5), 5, 6, 1), [undefined, undefined, undefined, undefined, undefined]);
    assert.deepEqual(fill(Array(5), 5, -3, 4), [undefined, undefined, 5, 5, undefined]);
    assert.arrayEqual(fill({ length: 5 }, 5), [5, 5, 5, 5, 5]);
    if (STRICT) {
      assert.throws(() => fill(null, 0), TypeError);
      assert.throws(() => fill(undefined, 0), TypeError);
    }
  });
  