function.prototype.name
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -119,3 +119,3 @@ { | ||
"validateNewlineAfterArrayElements": { | ||
"maximum": 1 | ||
"maximum": 2 | ||
}, | ||
@@ -122,0 +122,0 @@ |
@@ -0,1 +1,6 @@ | ||
1.0.3 / 2017-07-21 | ||
================= | ||
* [Fix] be robust against function name mangling | ||
* [Refactor] move function name detection to separate file | ||
1.0.2 / 2017-07-14 | ||
@@ -2,0 +7,0 @@ ================= |
'use strict'; | ||
var isCallable = require('is-callable'); | ||
var functionsHaveNames = function foo() {}.name === 'foo'; | ||
var functionsHaveNames = require('./helpers/functionsHaveNames'); | ||
var bind = require('function-bind'); | ||
@@ -6,0 +6,0 @@ var functionToString = bind.call(Function.call, Function.prototype.toString); |
{ | ||
"name": "function.prototype.name", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "Jordan Harband", | ||
@@ -13,3 +13,3 @@ "description": "An ES6 spec-compliant `Function.prototype.name` shim", | ||
"posttest": "npm run security", | ||
"tests-only": "es-shim-api --bound && node test/index.js", | ||
"tests-only": "es-shim-api --bound && node test && node test/shimmed && node test/uglified", | ||
"coverage": "covert test/*.js", | ||
@@ -51,3 +51,5 @@ "coverage-quiet": "covert test/*.js --quiet", | ||
"safe-publish-latest": "^1.1.1", | ||
"tape": "^4.7.0" | ||
"tape": "^4.7.0", | ||
"uglify-js": "^3.0.25", | ||
"uglify-register": "^1.0.0" | ||
}, | ||
@@ -54,0 +56,0 @@ "testling": { |
'use strict'; | ||
var supportsDescriptors = require('define-properties').supportsDescriptors; | ||
var functionsHaveNames = function foo() {}.name === 'foo'; | ||
var functionsHaveNames = require('./helpers/functionsHaveNames'); | ||
var getPolyfill = require('./polyfill'); | ||
@@ -6,0 +6,0 @@ var defineProperty = Object.defineProperty; |
'use strict'; | ||
var functionsHaveNames = function foo() {}.name === 'foo'; | ||
var functionsHaveNames = require('../helpers/functionsHaveNames'); | ||
var arrowFn = require('make-arrow-function')(); | ||
@@ -5,0 +5,0 @@ var genFn = require('make-generator-function'); |
23294
19
303
13