summaryrefslogtreecommitdiffstats
path: root/js
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
commit4a0061a3e0976d4001e23d66af04b06af792675f (patch)
tree5095b969cd58fce7b5894af3ad395cd8878ff204 /js
parent4a84afdc892dcc3a1732b45e5ac65812daa53fae (diff)
parentd2cfd332ac04f630ab1eb93b71f78a0474f43b88 (diff)
downloadUXP-4a0061a3e0976d4001e23d66af04b06af792675f.tar
UXP-4a0061a3e0976d4001e23d66af04b06af792675f.tar.gz
UXP-4a0061a3e0976d4001e23d66af04b06af792675f.tar.lz
UXP-4a0061a3e0976d4001e23d66af04b06af792675f.tar.xz
UXP-4a0061a3e0976d4001e23d66af04b06af792675f.zip
Merge pull request #1 from wolfbeast/patch-1
Fix order of OwnProperty check for rest parameters.
Diffstat (limited to 'js')
-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 ec5c88336..d5f233d05 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]);
}