Socket
Socket
Sign inDemoInstall

@babel/plugin-bugfix-safari-class-field-initializer-scope

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-bugfix-safari-class-field-initializer-scope

Wrap class field initializers with IIFE to workaround https://webkit.org/b/236843


Version published
Maintainers
4
Created

What is @babel/plugin-bugfix-safari-class-field-initializer-scope?

@babel/plugin-bugfix-safari-class-field-initializer-scope is a Babel plugin designed to address a specific bug in Safari's handling of class field initializers. This plugin ensures that class field initializers are correctly scoped, preventing potential issues in Safari's JavaScript engine.

What are @babel/plugin-bugfix-safari-class-field-initializer-scope's main functionalities?

Fixes class field initializer scope in Safari

This feature ensures that class field initializers are correctly scoped in Safari, preventing issues where the initializer might not be properly assigned to the instance.

class MyClass {
  myField = 'value';
  constructor() {
    console.log(this.myField);
  }
}
const instance = new MyClass();

Other packages similar to @babel/plugin-bugfix-safari-class-field-initializer-scope

Keywords

FAQs

Package last updated on 26 Jul 2024

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc