mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a7a0f86a73
commit
82f2b1d4e9
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user