Comparing version 7.2.6 to 7.2.7
@@ -0,2 +1,7 @@ | ||
7.2.7 / 2019-03-04 | ||
================== | ||
* Retain spy function names and fix spy.named(name) (#1987) | ||
* Document spying on accessors (#1976) | ||
7.2.6 / 2019-03-01 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -155,2 +155,8 @@ "use strict"; | ||
} | ||
var nameDescriptor = Object.getOwnPropertyDescriptor(func, "name"); | ||
if (nameDescriptor && nameDescriptor.configurable) { | ||
// IE 11 functions don't have a name. | ||
// Safari 9 has names that are not configurable. | ||
Object.defineProperty(p, "name", nameDescriptor); | ||
} | ||
extend.nonEnum(p, { | ||
@@ -336,2 +342,9 @@ isSinonProxy: true, | ||
this.displayName = name; | ||
var nameDescriptor = Object.getOwnPropertyDescriptor(this, "name"); | ||
if (nameDescriptor && nameDescriptor.configurable) { | ||
// IE 11 functions don't have a name. | ||
// Safari 9 has names that are not configurable. | ||
nameDescriptor.value = name; | ||
Object.defineProperty(this, "name", nameDescriptor); | ||
} | ||
return this; | ||
@@ -338,0 +351,0 @@ }, |
{ | ||
"name": "sinon", | ||
"description": "JavaScript test spies, stubs and mocks.", | ||
"version": "7.2.6", | ||
"version": "7.2.7", | ||
"homepage": "https://sinonjs.org/", | ||
@@ -58,4 +58,4 @@ "author": "Christian Johansen", | ||
"dependencies": { | ||
"@sinonjs/commons": "^1.3.0", | ||
"@sinonjs/formatio": "^3.2.0", | ||
"@sinonjs/commons": "^1.3.1", | ||
"@sinonjs/formatio": "^3.2.1", | ||
"@sinonjs/samsam": "^3.2.0", | ||
@@ -62,0 +62,0 @@ "diff": "^3.5.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7055783
105198
Updated@sinonjs/commons@^1.3.1
Updated@sinonjs/formatio@^3.2.1