Skip to content

Commit a7a0f86

Browse files
jpportofacebook-github-bot
authored andcommitted
Fix typo in Value's constructor with a Symbol
Summary: The current JSI implementation is converting a Symbol to String when creating a jsi Value. Changelog: [General][Fixed] Reviewed By: neildhar Differential Revision: D35705825 fbshipit-source-id: 3bee0a02bb77643c6a33031b4d98ac9a7e126303
1 parent 3c1a814 commit a7a0f86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactCommon/jsi/jsi/jsi.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ class JSI_EXPORT Value {
992992

993993
/// Copies a Symbol lvalue into a new JS value.
994994
Value(Runtime& runtime, const Symbol& sym) : Value(SymbolKind) {
995-
new (&data_.pointer) String(runtime.cloneSymbol(sym.ptr_));
995+
new (&data_.pointer) Symbol(runtime.cloneSymbol(sym.ptr_));
996996
}
997997

998998
/// Copies a String lvalue into a new JS value.

0 commit comments

Comments
 (0)