Socket
Socket
Sign inDemoInstall

@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly

Package Overview
Dependencies
2
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly


Version published
Weekly downloads
9.9M
decreased by-18.79%
Maintainers
4
Created
Weekly downloads
 

Package description

What is @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly?

@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly is a Babel plugin designed to address a specific bug in V8 (the JavaScript engine used in Chrome and Node.js) related to static class fields. This plugin ensures that static class fields are correctly redefined as readonly, preventing unexpected behavior in JavaScript code.

What are @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly's main functionalities?

Fix V8 static class fields bug

This feature ensures that static class fields in JavaScript are correctly treated as readonly, preventing them from being reassigned. The plugin modifies the behavior of static class fields to align with the expected behavior in V8.

class MyClass {
  static myField = 42;
}

MyClass.myField = 100; // This will not change the value of myField due to the plugin

Other packages similar to @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly

Changelog

Source

v7.23.7 (2023-12-29)

:bug: Bug Fix
  • babel-traverse
    • #16191 fix: Crash when removing without Program (@liuxingbaoyu)
  • babel-helpers, babel-plugin-proposal-decorators
  • babel-plugin-proposal-decorators
  • babel-core
:house: Internal
  • babel-helper-create-class-features-plugin
  • babel-helper-create-class-features-plugin, babel-plugin-proposal-decorators

Readme

Source

@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly

Transform static class fields assignments that are affected by https://crbug.com/v8/12421

See our website @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly

or using yarn:

yarn add @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly --dev

Keywords

FAQs

Last updated on 29 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc