Skip to content

Commit

Permalink
[Fix] ensure function name mangling does not break detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 24, 2019
1 parent 0cb8017 commit f6926ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var functionsHaveNames = function functionsHaveNames() {
return function f() {}.name === 'f';
return typeof function f() {}.name === 'string';
};

var gOPD = Object.getOwnPropertyDescriptor;
Expand Down

0 comments on commit f6926ab

Please sign in to comment.