Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: src/json.js

Issue 7356013: Implement Object.prototype.hasOwnProperty in generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/json.js
diff --git a/src/json.js b/src/json.js
index 6c984a157df36803f31ff87021e2c36e96207aa0..9ea367cb132cd87d538d50c540ce713539b515b0 100644
--- a/src/json.js
+++ b/src/json.js
@@ -248,7 +248,7 @@ function BasicSerializeObject(value, stack, builder) {
builder.push("{");
var first = true;
for (var p in value) {
- if (%HasLocalProperty(value, p)) {
+ if (%HasOwnProperty(value, p)) {
if (!first) {
builder.push(%QuoteJSONStringComma(p));
} else {

Powered by Google App Engine
This is Rietveld 408576698