From 82f2b1d4e94418b78e9fdcbfc5462daab00090d0 Mon Sep 17 00:00:00 2001 From: Anand Bashyam Date: Sun, 17 Apr 2022 12:51:12 -0700 Subject: [PATCH] Revert D35705825: Fix typo in Value's constructor with a Symbol Differential Revision: D35705825 (https://github.com/facebook/react-native/commit/a7a0f86a73ab51be31fb2c3205612d7ff1fb5384) Original commit changeset: 3bee0a02bb77 Original Phabricator Diff: D35705825 (https://github.com/facebook/react-native/commit/a7a0f86a73ab51be31fb2c3205612d7ff1fb5384) fbshipit-source-id: b5a6c9f6f576ea1771dca8977b394bd90064c669 --- ReactCommon/jsi/jsi/jsi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/jsi/jsi/jsi.h b/ReactCommon/jsi/jsi/jsi.h index 56884908b6d..9c86ca39a49 100644 --- a/ReactCommon/jsi/jsi/jsi.h +++ b/ReactCommon/jsi/jsi/jsi.h @@ -992,7 +992,7 @@ class JSI_EXPORT Value { /// Copies a Symbol lvalue into a new JS value. Value(Runtime& runtime, const Symbol& sym) : Value(SymbolKind) { - new (&data_.pointer) Symbol(runtime.cloneSymbol(sym.ptr_)); + new (&data_.pointer) String(runtime.cloneSymbol(sym.ptr_)); } /// Copies a String lvalue into a new JS value.