Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

happy-dom

Package Overview
Dependencies
Maintainers
0
Versions
614
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

happy-dom - npm Package Compare versions

Comparing version 16.2.5 to 16.2.6

6

lib/utilities/ClassMethodBinder.js

@@ -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,

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc