Skip to content

Commit 353fe98

Browse files
committed
fix: no reference temporaries
1 parent 66b3d3b commit 353fe98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/Support/Lua.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@ domObject_push_metatable(
511511
return 2;
512512
}
513513
auto index = lua_tonumber(A, lua_upvalueindex(1));
514-
auto const& kv = obj.entries()[index];
514+
auto entries = obj.entries();
515+
auto const& kv = entries[index];
515516
luaM_pushstring(A, kv.first);
516517
domValue_push(A, kv.second);
517518
++index;

0 commit comments

Comments
 (0)