wasmer-napi 0.702.0

NAPI library for Wasmer WebAssembly runtime
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef NAPI_V8_NODE_V8_DEFAULT_FLAGS_H_
#define NAPI_V8_NODE_V8_DEFAULT_FLAGS_H_

// Keep these flags aligned with the corresponding shipping JS feature entries
// in deps/v8/src/flags/flag-definitions.h
// (JAVASCRIPT_SHIPPING_FEATURES_BASE). The embedded napi_v8 runtime currently
// enables these explicitly during bootstrap instead of plumbing them through
// edge's execArgv handling.
inline constexpr char kNodeJsExplicitResourceManagementFlag[] =
    "--js-explicit-resource-management";
inline constexpr char kNodeJsFloat16ArrayFlag[] = "--js-float16array";
inline constexpr char kNodeDefaultShippingV8Flags[] =
    "--js-explicit-resource-management "
    "--js-float16array";

#endif  // NAPI_V8_NODE_V8_DEFAULT_FLAGS_H_