Fix incorrect property checks in researchSync

Fix naive checks for properties being set of the form obj[key] into the
proper form Object.hasOwnProperty.call(obj, key).  The reason for this
is that if the key has a value of a built-in property like 'constructor'
then a check of the form obj[key] will always return true even if that
property hasn't been set on the object.
This commit is contained in:
Hornwitser committed 2019-10-12 17:07:07 +02:00
1 parent a9cc743106
commit 6a6274e85c
3 files changed
+46 -32

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "clusterio",
"version": "1.2.1",
"version": "1.2.2-alpha",
"description": "Interserver communication for factorio",
"repository": "https://github.com/Danielv123/factorioClusterio",
"main": "master.js",