浏览代码

LibJS: Use PropertyKey in MemberExpression::to_reference()

Andreas Kling 3 年之前
父节点
当前提交
c02e992de2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 ]