Revert "chore: move all node-api impl to ext (#24662)" (#24680)

This reverts commit d00fbd7025.

Reverting because, it caused a failure during v1.45.3 publish:

2777371809
This commit is contained in:
Bartek Iwańczuk 2024-07-23 01:01:31 +01:00 committed by GitHub
parent 715675565a
commit 3f8efe5289
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 165 additions and 164 deletions

View file

@ -5,21 +5,6 @@
#![allow(clippy::undocumented_unsafe_blocks)]
#![deny(clippy::missing_safety_doc)]
//! Symbols to be exported are now defined in this JSON file.
//! The `#[napi_sym]` macro checks for missing entries and panics.
//!
//! `./tools/napi/generate_symbols_list.js` is used to generate the LINK `cli/exports.def` on Windows,
//! which is also checked into git.
//!
//! To add a new napi function:
//! 1. Place `#[napi_sym]` on top of your implementation.
//! 2. Add the function's identifier to this JSON list.
//! 3. Finally, run `tools/napi/generate_symbols_list.js` to update `cli/napi/generated_symbol_exports_list_*.def`.
pub mod js_native_api;
pub mod node_api;
pub mod util;
use core::ptr::NonNull;
use deno_core::error::type_error;
use deno_core::error::AnyError;