Skip to content

Commit

Permalink
[Tests] use functions-have-names
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 23, 2019
1 parent 6e9d7e7 commit 8eebb79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"eslint": "^5.16.0",
"evalmd": "^0.0.17",
"foreach": "^2.0.5",
"functions-have-names": "^1.1.0",
"object-inspect": "^1.6.0",
"object.assign": "^4.1.0",
"object.entries": "^1.1.0",
Expand Down
6 changes: 2 additions & 4 deletions test/shimmed.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ var hasSymbols = require('has-symbols')();
var regexMatchAll = require('../regexp-matchall');

var isEnumerable = Object.prototype.propertyIsEnumerable;
var functionsHaveNames = function f() {}.name === 'f';
var functionNamesConfigurable = functionsHaveNames
&& Object.getOwnPropertyDescriptor
&& Object.getOwnPropertyDescriptor(function () {}, 'name').configurable;
var functionsHaveNames = require('functions-have-names')();
var functionNamesConfigurable = require('functions-have-names').functionsHaveConfigurableNames();

var runTests = require('./tests');

Expand Down

0 comments on commit 8eebb79

Please sign in to comment.