Browse Source

LibJS: Use PropertyKey in MemberExpression::to_reference()

Andreas Kling 3 years ago
parent
commit
c02e992de2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibJS/AST.cpp

+ 1 - 1
Userland/Libraries/LibJS/AST.cpp

@@ -1040,7 +1040,7 @@ Reference MemberExpression::to_reference(Interpreter& interpreter, GlobalObject&
         // 2. Let actualThis be ? env.GetThisBinding().
         auto actual_this = TRY_OR_DISCARD(environment.get_this_binding(global_object));
 
-        StringOrSymbol property_key;
+        PropertyKey property_key;
 
         if (is_computed()) {
             // SuperProperty : super [ Expression ]