diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-01-31 13:19:50 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-01-31 13:19:50 -0800 |
commit | 0634e3a8bc3f7d6d022a13f25638eb394fd9a11b (patch) | |
tree | 25ec87c266116f5167714cfb535442df2919f423 /deps/v8/src/json.js | |
parent | c5017851128dafc7427e24e7c07076672b53acec (diff) | |
download | node-new-0634e3a8bc3f7d6d022a13f25638eb394fd9a11b.tar.gz |
Upgrade V8 to 3.1.0
Diffstat (limited to 'deps/v8/src/json.js')
-rw-r--r-- | deps/v8/src/json.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/json.js b/deps/v8/src/json.js index e90d5d1d0a..e6ada51b48 100644 --- a/deps/v8/src/json.js +++ b/deps/v8/src/json.js @@ -38,7 +38,7 @@ function Revive(holder, name, reviver) { } } else { for (var p in val) { - if (ObjectHasOwnProperty.call(val, p)) { + if (%_CallFunction(val, p, ObjectHasOwnProperty)) { var newElement = Revive(val, p, reviver); if (IS_UNDEFINED(newElement)) { delete val[p]; @@ -101,7 +101,7 @@ function SerializeObject(value, replacer, stack, indent, gap) { if (IS_ARRAY(replacer)) { var length = replacer.length; for (var i = 0; i < length; i++) { - if (ObjectHasOwnProperty.call(replacer, i)) { + if (%_CallFunction(replacer, i, ObjectHasOwnProperty)) { var p = replacer[i]; var strP = JSONSerialize(p, value, replacer, stack, indent, gap); if (!IS_UNDEFINED(strP)) { @@ -114,7 +114,7 @@ function SerializeObject(value, replacer, stack, indent, gap) { } } else { for (var p in value) { - if (ObjectHasOwnProperty.call(value, p)) { + if (%_CallFunction(value, p, ObjectHasOwnProperty)) { var strP = JSONSerialize(p, value, replacer, stack, indent, gap); if (!IS_UNDEFINED(strP)) { var member = %QuoteJSONString(p) + ":"; |