summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorg4jc <g4jc@users.noreply.github.com>2019-07-19 18:20:54 -0400
committerGitHub <noreply@github.com>2019-07-19 18:20:54 -0400
commit85ca43e97ce175a84fef85977125d67a8618e59e (patch)
tree5095b969cd58fce7b5894af3ad395cd8878ff204
parent7b85ef7f04a179e77222b8e27b6f8ba4bf877f39 (diff)
parent4ce01d01900a1601c5fb782dd52528e8afb85b03 (diff)
downloaduxp-85ca43e97ce175a84fef85977125d67a8618e59e.tar.gz
Merge pull request #1 from wolfbeast/patch-1
Fix order of OwnProperty check for rest parameters.
-rw-r--r--js/src/builtin/Utilities.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/builtin/Utilities.js b/js/src/builtin/Utilities.js
index ec5c883365..d5f233d050 100644
--- a/js/src/builtin/Utilities.js
+++ b/js/src/builtin/Utilities.js
@@ -254,7 +254,7 @@ function CopyDataProperties(target, source, excluded) {
// We abbreviate this by calling propertyIsEnumerable which is faster
// and returns false for not defined properties.
- if (!callFunction(std_Object_hasOwnProperty, key, excluded) && callFunction(std_Object_propertyIsEnumerable, source, key))
+ if (!callFunction(std_Object_hasOwnProperty, excluded, key) && callFunction(std_Object_propertyIsEnumerable, source, key))
_DefineDataProperty(target, key, source[key]);
}