Skip to content

Commit

Permalink
Merge pull request #1077 from neon-bindings/undeprecate-call
Browse files Browse the repository at this point in the history
Un-deprecate `JsFunction::{call, exec, construct}`
  • Loading branch information
dherman authored Oct 3, 2024
2 parents d7b27ef + 7302671 commit 482293e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/neon/src/types_impl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1119,8 +1119,7 @@ impl JsFunction {
impl JsFunction {
/// Calls this function.
///
/// **See also:** [`JsFunction::call_with`].
#[deprecated(since = "TBD", note = "use `JsFunction::bind` instead")]
/// **See also:** [`JsFunction::bind`].
pub fn call<'a, 'b, C: Context<'a>, T, AS>(
&self,
cx: &mut C,
Expand All @@ -1136,8 +1135,7 @@ impl JsFunction {

/// Calls this function for side effect, discarding its result.
///
/// **See also:** [`JsFunction::call_with`].
#[deprecated(since = "TBD", note = "use `JsFunction::bind` instead")]
/// **See also:** [`JsFunction::bind`].
pub fn exec<'a, 'b, C: Context<'a>, T, AS>(
&self,
cx: &mut C,
Expand All @@ -1154,8 +1152,7 @@ impl JsFunction {

/// Calls this function as a constructor.
///
/// **See also:** [`JsFunction::construct_with`].
#[deprecated(since = "TBD", note = "use `JsFunction::bind` instead")]
/// **See also:** [`JsFunction::bind`].
pub fn construct<'a, 'b, C: Context<'a>, AS>(
&self,
cx: &mut C,
Expand Down

0 comments on commit 482293e

Please sign in to comment.