@@ -222,14 +222,6 @@ NODE_EXTERN int Start(int argc, char* argv[]);
222
222
// in the loop and / or actively executing JavaScript code).
223
223
NODE_EXTERN int Stop (Environment* env);
224
224
225
- // It is recommended to use InitializeNodeWithArgs() instead as an embedder.
226
- // Init() calls InitializeNodeWithArgs() and exits the process with the exit
227
- // code returned from it.
228
- NODE_DEPRECATED (" Use InitializeNodeWithArgs() instead" ,
229
- NODE_EXTERN void Init (int * argc,
230
- const char ** argv,
231
- int * exec_argc,
232
- const char *** exec_argv));
233
225
// Set up per-process state needed to run Node.js. This will consume arguments
234
226
// from argv, fill exec_argv, and possibly add errors resulting from parsing
235
227
// the arguments to `errors`. The return value is a suggested exit code for the
@@ -357,11 +349,9 @@ NODE_EXTERN void SetIsolateUpForNode(v8::Isolate* isolate);
357
349
// This is a convenience method equivalent to using SetIsolateCreateParams(),
358
350
// Isolate::Allocate(), MultiIsolatePlatform::RegisterIsolate(),
359
351
// Isolate::Initialize(), and SetIsolateUpForNode().
360
- NODE_EXTERN v8::Isolate* NewIsolate (ArrayBufferAllocator* allocator,
361
- struct uv_loop_s * event_loop);
362
352
NODE_EXTERN v8::Isolate* NewIsolate (ArrayBufferAllocator* allocator,
363
353
struct uv_loop_s * event_loop,
364
- MultiIsolatePlatform* platform);
354
+ MultiIsolatePlatform* platform = nullptr );
365
355
NODE_EXTERN v8::Isolate* NewIsolate (
366
356
std::shared_ptr<ArrayBufferAllocator> allocator,
367
357
struct uv_loop_s * event_loop,
@@ -422,14 +412,6 @@ struct InspectorParentHandle {
422
412
// TODO(addaleax): Maybe move per-Environment options parsing here.
423
413
// Returns nullptr when the Environment cannot be created e.g. there are
424
414
// pending JavaScript exceptions.
425
- // It is recommended to use the second variant taking a flags argument.
426
- NODE_DEPRECATED (" Use overload taking a flags argument" ,
427
- NODE_EXTERN Environment* CreateEnvironment (IsolateData* isolate_data,
428
- v8::Local<v8::Context> context,
429
- int argc,
430
- const char * const * argv,
431
- int exec_argc,
432
- const char * const * exec_argv));
433
415
NODE_EXTERN Environment* CreateEnvironment (
434
416
IsolateData* isolate_data,
435
417
v8::Local<v8::Context> context,
@@ -459,18 +441,12 @@ struct StartExecutionCallbackInfo {
459
441
using StartExecutionCallback =
460
442
std::function<v8::MaybeLocal<v8::Value>(const StartExecutionCallbackInfo&)>;
461
443
462
- NODE_DEPRECATED (" Use variants returning MaybeLocal<> instead" ,
463
- NODE_EXTERN void LoadEnvironment (Environment* env));
464
- // The `InspectorParentHandle` arguments here are ignored and not used.
465
- // For passing `InspectorParentHandle`, use `CreateEnvironment()`.
466
444
NODE_EXTERN v8::MaybeLocal<v8::Value> LoadEnvironment (
467
445
Environment* env,
468
- StartExecutionCallback cb,
469
- std::unique_ptr<InspectorParentHandle> ignored_donotuse_removeme = {});
446
+ StartExecutionCallback cb);
470
447
NODE_EXTERN v8::MaybeLocal<v8::Value> LoadEnvironment (
471
448
Environment* env,
472
- const char * main_script_source_utf8,
473
- std::unique_ptr<InspectorParentHandle> ignored_donotuse_removeme = {});
449
+ const char * main_script_source_utf8);
474
450
NODE_EXTERN void FreeEnvironment (Environment* env);
475
451
476
452
// Set a callback that is called when process.exit() is called from JS,
@@ -498,25 +474,17 @@ NODE_EXTERN v8::MaybeLocal<v8::Value> PrepareStackTraceCallback(
498
474
v8::Local<v8::Value> exception ,
499
475
v8::Local<v8::Array> trace);
500
476
501
- // This returns the MultiIsolatePlatform used in the main thread of Node.js.
502
- // If NODE_USE_V8_PLATFORM has not been defined when Node.js was built,
503
- // it returns nullptr.
504
- NODE_DEPRECATED (" Use GetMultiIsolatePlatform(env) instead" ,
505
- NODE_EXTERN MultiIsolatePlatform* GetMainThreadMultiIsolatePlatform ());
506
477
// This returns the MultiIsolatePlatform used for an Environment or IsolateData
507
478
// instance, if one exists.
508
479
NODE_EXTERN MultiIsolatePlatform* GetMultiIsolatePlatform (Environment* env);
509
480
NODE_EXTERN MultiIsolatePlatform* GetMultiIsolatePlatform (IsolateData* env);
510
481
511
- // Legacy variants of MultiIsolatePlatform::Create().
512
- NODE_DEPRECATED (" Use variant taking a v8::TracingController* pointer instead" ,
482
+ NODE_DEPRECATED (" Use MultiIsolatePlatform::Create() instead" ,
513
483
NODE_EXTERN MultiIsolatePlatform* CreatePlatform (
514
484
int thread_pool_size,
515
- node::tracing::TracingController* tracing_controller));
516
- NODE_EXTERN MultiIsolatePlatform* CreatePlatform (
517
- int thread_pool_size,
518
- v8::TracingController* tracing_controller);
519
- NODE_EXTERN void FreePlatform (MultiIsolatePlatform* platform);
485
+ v8::TracingController* tracing_controller));
486
+ NODE_DEPRECATED (" Use MultiIsolatePlatform::Create() instead" ,
487
+ NODE_EXTERN void FreePlatform (MultiIsolatePlatform* platform));
520
488
521
489
// Get/set the currently active tracing controller. Using CreatePlatform()
522
490
// will implicitly set this by default. This is global and should be initialized
@@ -920,29 +888,13 @@ NODE_EXTERN void AddLinkedBinding(Environment* env,
920
888
addon_context_register_func fn,
921
889
void * priv);
922
890
923
- /* Called after the event loop exits but before the VM is disposed.
924
- * Callbacks are run in reverse order of registration, i.e. newest first.
925
- *
926
- * You should always use the three-argument variant (or, for addons,
927
- * AddEnvironmentCleanupHook) in order to avoid relying on global state.
928
- */
929
- NODE_DEPRECATED (
930
- " Use the three-argument variant of AtExit() or AddEnvironmentCleanupHook()" ,
931
- NODE_EXTERN void AtExit (void (*cb)(void * arg), void* arg = nullptr));
932
-
933
891
/* Registers a callback with the passed-in Environment instance. The callback
934
892
* is called after the event loop exits, but before the VM is disposed.
935
893
* Callbacks are run in reverse order of registration, i.e. newest first.
936
894
*/
937
895
NODE_EXTERN void AtExit (Environment* env,
938
896
void (*cb)(void * arg),
939
897
void* arg);
940
- NODE_DEPRECATED (
941
- " Use the three-argument variant of AtExit() or AddEnvironmentCleanupHook()" ,
942
- inline void AtExit (Environment* env,
943
- void (*cb)(void * arg)) {
944
- AtExit (env, cb, nullptr );
945
- })
946
898
947
899
typedef double async_id;
948
900
struct async_context {
0 commit comments