diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/SymbolConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/SymbolConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/SymbolConstructor.cpp b/Userland/Libraries/LibJS/Runtime/SymbolConstructor.cpp index 4e814ba565..1bffcc0826 100644 --- a/Userland/Libraries/LibJS/Runtime/SymbolConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/SymbolConstructor.cpp @@ -85,7 +85,7 @@ JS_DEFINE_NATIVE_FUNCTION(SymbolConstructor::key_for) auto& symbol = argument.as_symbol(); if (symbol.is_global()) - return js_string(vm, symbol.description()); + return PrimitiveString::create(vm, symbol.description()); return js_undefined(); } |