happy-dom
Advanced tools
Comparing version 16.2.5 to 16.2.6
@@ -25,3 +25,3 @@ /** | ||
// We should never bind the Symbol.iterator method as it can cause problems with Array.from() | ||
if (this.cache.has(name) || name === Symbol.iterator) { | ||
if (this.cache.has(name) || name === Symbol.iterator || name === 'constructor') { | ||
return; | ||
@@ -38,2 +38,6 @@ } | ||
if (typeof descriptor.value === 'function') { | ||
if (descriptor.value.toString().startsWith('class ')) { | ||
// Do not bind classes | ||
return; | ||
} | ||
Object.defineProperty(target, name, { | ||
@@ -40,0 +44,0 @@ ...descriptor, |
{ | ||
"name": "happy-dom", | ||
"version": "16.2.5", | ||
"version": "16.2.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/capricorn86/happy-dom", |
@@ -27,3 +27,3 @@ /** | ||
// We should never bind the Symbol.iterator method as it can cause problems with Array.from() | ||
if (this.cache.has(name) || name === Symbol.iterator) { | ||
if (this.cache.has(name) || name === Symbol.iterator || name === 'constructor') { | ||
return; | ||
@@ -44,2 +44,6 @@ } | ||
if (typeof descriptor.value === 'function') { | ||
if (descriptor.value.toString().startsWith('class ')) { | ||
// Do not bind classes | ||
return; | ||
} | ||
Object.defineProperty(target, name, { | ||
@@ -46,0 +50,0 @@ ...descriptor, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
12562139
250769
2