Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

hermes-engine

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hermes-engine - npm Package Compare versions

Comparing version
0.6.0
to
0.7.0
+6
-6
android/include/hermes/DebuggerAPI.h

@@ -40,3 +40,3 @@ /*

/// Represents a variable in the debugger.
struct VariableInfo {
struct HERMES_EXPORT VariableInfo {
/// Name of the variable in the source.

@@ -50,3 +50,3 @@ String name;

/// An EvalResult represents the result of an Eval command.
struct EvalResult {
struct HERMES_EXPORT EvalResult {
/// The resulting JavaScript object, or the thrown exception.

@@ -76,3 +76,3 @@ ::facebook::jsi::Value value;

/// Debugger.
class ProgramState {
class HERMES_EXPORT ProgramState {
public:

@@ -160,3 +160,3 @@ /// \return the reason for the Pause.

/// when returned from didPause().
class Command {
class HERMES_EXPORT Command {
public:

@@ -187,3 +187,3 @@ /// Commands may be moved.

/// EventObserver.
class Debugger {
class HERMES_EXPORT Debugger {
public:

@@ -284,3 +284,3 @@ /// Set the Debugger event observer. The event observer is notified of

/// setEventObserver(). It receives notifications when the Debugger pauses.
class EventObserver {
class HERMES_EXPORT EventObserver {
public:

@@ -287,0 +287,0 @@ /// didPause() is invoked when the JavaScript program has paused. The

@@ -19,2 +19,14 @@ /*

#ifndef HERMES_EXPORT
#ifdef _MSC_VER
#ifdef CREATE_SHARED_LIBRARY
#define HERMES_EXPORT __declspec(dllexport)
#else
#define HERMES_EXPORT
#endif // CREATE_SHARED_LIBRARY
#else // _MSC_VER
#define HERMES_EXPORT __attribute__((visibility("default")))
#endif // _MSC_VER
#endif // !defined(HERMES_EXPORT)
struct HermesTestHelper;

@@ -51,3 +63,3 @@

/// Represents a Hermes JS runtime.
class HermesRuntime : public jsi::Runtime {
class HERMES_EXPORT HermesRuntime : public jsi::Runtime {
public:

@@ -162,3 +174,5 @@ static bool isHermesBytecode(const uint8_t *data, size_t len);

struct DebugFlags {
bool lazy{false};
// Looking for the .lazy flag? It's no longer necessary.
// Source is evaluated lazily by default. See
// RuntimeConfig::CompilationMode.
};

@@ -202,6 +216,7 @@

std::unique_ptr<HermesRuntime> makeHermesRuntime(
HERMES_EXPORT std::unique_ptr<HermesRuntime> makeHermesRuntime(
const ::hermes::vm::RuntimeConfig &runtimeConfig =
::hermes::vm::RuntimeConfig());
std::unique_ptr<jsi::ThreadSafeRuntime> makeThreadSafeHermesRuntime(
HERMES_EXPORT std::unique_ptr<jsi::ThreadSafeRuntime>
makeThreadSafeHermesRuntime(
const ::hermes::vm::RuntimeConfig &runtimeConfig =

@@ -208,0 +223,0 @@ ::hermes::vm::RuntimeConfig());

@@ -46,5 +46,12 @@ /*

/// If the given \p key has an associated custom data string, remove the
/// association.
/// association. If the key hasn't been set before, is a no-op.
virtual void removeCustomData(const char *key) = 0;
/// Same as \c setCustomData, except it is only set for the current thread.
virtual void setContextualCustomData(const char *key, const char *val) = 0;
/// Same as \c removeCustomData, except it is for keys set with \c
/// setContextualCustomData.
virtual void removeContextualCustomData(const char *key) = 0;
/// Registers a function to be called after a crash has occurred. This

@@ -86,2 +93,4 @@ /// function can examine memory and serialize this to a JSON output stream.

void removeCustomData(const char *) override {}
void setContextualCustomData(const char *, const char *) override {}
void removeContextualCustomData(const char *) override {}
CallbackKey registerCallback(CallbackFunc /*callback*/) override {

@@ -88,0 +97,0 @@ return 0;

@@ -29,2 +29,8 @@ /*

enum CompilationMode {
SmartCompilation,
ForceEagerCompilation,
ForceLazyCompilation
};
class PinnedHermesValue;

@@ -61,3 +67,3 @@ #ifdef HERMESVM_SERIALIZE

/* Support for ES6 Proxy. */ \
F(constexpr, bool, ES6Proxy, false) \
F(constexpr, bool, ES6Proxy, true) \
\

@@ -110,2 +116,8 @@ /* Support for ES6 Symbol. */ \

\
/* Choose lazy/eager compilation mode. */ \
F(constexpr, \
CompilationMode, \
CompilationMode, \
CompilationMode::SmartCompilation) \
\
/* An interface for managing crashes. */ \

@@ -112,0 +124,0 @@ F(HERMES_NON_CONSTEXPR, \

@@ -24,3 +24,3 @@ /*

/// it modify the values of any jsi values in the heap (although GCs are fine).
class Instrumentation {
class JSI_EXPORT Instrumentation {
public:

@@ -27,0 +27,0 @@ virtual ~Instrumentation() = default;

@@ -20,7 +20,7 @@ /*

#ifdef _MSC_VER
#ifdef JSI_CREATE_SHARED_LIBRARY
#ifdef CREATE_SHARED_LIBRARY
#define JSI_EXPORT __declspec(dllexport)
#else
#define JSI_EXPORT
#endif // JSI_CREATE_SHARED_LIBRARY
#endif // CREATE_SHARED_LIBRARY
#else // _MSC_VER

@@ -35,3 +35,3 @@ #define JSI_EXPORT __attribute__((visibility("default")))

class Buffer {
class JSI_EXPORT Buffer {
public:

@@ -43,3 +43,3 @@ virtual ~Buffer();

class StringBuffer : public Buffer {
class JSI_EXPORT StringBuffer : public Buffer {
public:

@@ -62,3 +62,3 @@ StringBuffer(std::string s) : s_(std::move(s)) {}

/// ** This is an experimental API that is subject to change. **
class PreparedJavaScript {
class JSI_EXPORT PreparedJavaScript {
protected:

@@ -152,3 +152,3 @@ PreparedJavaScript() = default;

/// you will probably need to do use your own locks.
class Runtime {
class JSI_EXPORT Runtime {
public:

@@ -334,3 +334,3 @@ virtual ~Runtime();

// Base class for pointer-storing types.
class Pointer {
class JSI_EXPORT Pointer {
protected:

@@ -358,3 +358,3 @@ explicit Pointer(Pointer&& other) : ptr_(other.ptr_) {

/// Represents something that can be a JS property key. Movable, not copyable.
class PropNameID : public Pointer {
class JSI_EXPORT PropNameID : public Pointer {
public:

@@ -433,3 +433,3 @@ using Pointer::Pointer;

/// later.
class Symbol : public Pointer {
class JSI_EXPORT Symbol : public Pointer {
public:

@@ -457,3 +457,3 @@ using Pointer::Pointer;

/// Represents a JS String. Movable, not copyable.
class String : public Pointer {
class JSI_EXPORT String : public Pointer {
public:

@@ -516,3 +516,3 @@ using Pointer::Pointer;

/// Represents a JS Object. Movable, not copyable.
class Object : public Pointer {
class JSI_EXPORT Object : public Pointer {
public:

@@ -705,3 +705,3 @@ using Pointer::Pointer;

/// names are inspired by C++ weak_ptr. Movable, not copyable.
class WeakObject : public Pointer {
class JSI_EXPORT WeakObject : public Pointer {
public:

@@ -728,3 +728,3 @@ using Pointer::Pointer;

/// with integral indices.
class Array : public Object {
class JSI_EXPORT Array : public Object {
public:

@@ -784,3 +784,3 @@ Array(Array&&) = default;

/// Represents a JSArrayBuffer
class ArrayBuffer : public Object {
class JSI_EXPORT ArrayBuffer : public Object {
public:

@@ -812,3 +812,3 @@ ArrayBuffer(ArrayBuffer&&) = default;

/// Represents a JS Object which is guaranteed to be Callable.
class Function : public Object {
class JSI_EXPORT Function : public Object {
public:

@@ -923,3 +923,3 @@ Function(Function&&) = default;

/// ctor).
class Value {
class JSI_EXPORT Value {
public:

@@ -1196,3 +1196,3 @@ /// Default ctor creates an \c undefined JS value.

/// locking, provided that the lock (if any) is managed with RAII helpers.
class Scope {
class JSI_EXPORT Scope {
public:

@@ -1199,0 +1199,0 @@ explicit Scope(Runtime& rt) : rt_(rt), prv_(rt.pushScope()) {}

{
"name": "hermes-engine",
"version": "0.6.0",
"version": "0.7.0",
"private": false,

@@ -5,0 +5,0 @@ "description": "A JavaScript engine optimized for running React Native on Android",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display