Skip to content

Commit

Permalink
[readme] note that FF 102+ no longer needs this package
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 8, 2022
1 parent 6c7dd59 commit 0a0c758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Because `Array.prototype.includes` depends on a receiver (the `this` value), the
Engines that need this package include:
- IE (all versions)
- Safari < 9
- Firefox < 43, and 99+
- Firefox < 43, and 99-101
- Chrome < 47
- Edge < 14
- node < 6
Expand Down
3 changes: 3 additions & 0 deletions test/shimmed.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

var orig = Array.prototype.includes;

require('../auto');

var test = require('tape');
Expand All @@ -11,6 +13,7 @@ var functionsHaveNames = require('functions-have-names')();
var runTests = require('./tests');

test('shimmed', function (t) {
t.comment('shimmed: ' + (orig === Array.prototype.includes ? 'no' : 'yes'));
t.equal(Array.prototype.includes.length, 1, 'Array#includes has a length of 1');
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
st.equal(Array.prototype.includes.name, 'includes', 'Array#includes has name "includes"');
Expand Down

0 comments on commit 0a0c758

Please sign in to comment.