Skip to content

Commit 0ab4825

Browse files
micleo2facebook-github-bot
authored andcommitted
Delete unused constructNativeStackTraceString_RJS
Summary: This was made obsolete and folded into constructStackTraceString_RJS, but the header was never removed. Reviewed By: avp Differential Revision: D78989653 fbshipit-source-id: 333dd879604ca26f60f34bfbfaea3266964d7a34
1 parent fb0371c commit 0ab4825

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

include/hermes/VM/JSError.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -209,23 +209,6 @@ class JSError final : public JSObject {
209209
const NativeStackTraceInfo *frame,
210210
SmallU16String<32> &stack);
211211

212-
/// Construct the stacktrace string, append to \p stack.
213-
/// If the construction of the stack throws an uncatchable error, this
214-
/// function returns prematurely.
215-
///
216-
/// \param selfHandle supplies the call stack for the trace.
217-
/// \param targetHandle supplies the error name and message for the trace.
218-
///
219-
/// In the `(new Error).stack` case, selfHandle and targetHandle will both
220-
/// refer to the same object.
221-
/// In the `target = {}; Error.captureErrorStack(target); target.stack` case,
222-
/// selfHandle will be the value of `target`'s [[CapturedError]] slot.
223-
static ExecutionStatus constructNativeStackTraceString_RJS(
224-
Runtime &runtime,
225-
Handle<JSError> selfHandle,
226-
Handle<JSObject> targetHandle,
227-
SmallU16String<32> &stack);
228-
229212
/// Construct the callSites array for Error.prepareStackTrace.
230213
static CallResult<HermesValue> constructCallSitesArray(
231214
Runtime &runtime,

0 commit comments

Comments
 (0)