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

@babel/helper-call-delegate

Package Overview
Dependencies
Maintainers
4
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-call-delegate

Helper function to call delegate

  • 7.0.0-beta.32
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
156K
decreased by-65.96%
Maintainers
4
Weekly downloads
 
Created

What is @babel/helper-call-delegate?

@babel/helper-call-delegate is a Babel helper module that assists in transforming and managing function calls, particularly in the context of handling super calls in derived classes. It is used internally by Babel to ensure that the correct context and arguments are passed when dealing with inheritance and method overriding.

What are @babel/helper-call-delegate's main functionalities?

Handling Super Calls

This feature allows you to handle super calls in derived classes by ensuring that the correct context and arguments are passed to the super function. The `callDelegate` function is used to invoke the super function with the specified context and arguments.

const { callDelegate } = require('@babel/helper-call-delegate');

function superCallExample() {
  const superFn = () => console.log('super function');
  const context = { value: 42 };
  const args = [1, 2, 3];
  callDelegate(superFn, context, args);
}
superCallExample();

Other packages similar to @babel/helper-call-delegate

FAQs

Package last updated on 12 Nov 2017

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