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

Side by Side Diff: test/mjsunit/regress/regress-1015.js

Issue 6118001: Avoid calling inherited setters when creating object literals and their boilerplates. (Closed)
Patch Set: Created 9 years, 11 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 unified diff | Download patch
OLDNEW
1 commit 8e95a67772be10c478e45a677cfd753007b86fa6 1 commit 8e95a67772be10c478e45a677cfd753007b86fa6
2 Author: Lasse R.H. Nielsen <lrn@chromium.org> 2 Author: Lasse R.H. Nielsen <lrn@chromium.org>
3 Date: Thu Jan 6 13:25:33 2011 +0100 3 Date: Thu Jan 6 13:25:33 2011 +0100
4 4
5 Avoid calling inherited setters when creating object literals and their boil erplates. 5 Avoid calling inherited setters when creating object literals and their boil erplates.
6 6
7 diff --git a/test/mjsunit/regress/regress-1015.js b/test/mjsunit/regress/regress -1015.js 7 diff --git a/test/mjsunit/regress/regress-1015.js b/test/mjsunit/regress/regress -1015.js
8 new file mode 100644 8 new file mode 100644
9 index 0000000..9e4406a 9 index 0000000..9e4406a
10 --- /dev/null 10 --- /dev/null
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 + var ja = JSON.parse('[1,2,3,4]'); 69 + var ja = JSON.parse('[1,2,3,4]');
70 + var jo = JSON.parse('{"bar": 10, "foo": 20}') 70 + var jo = JSON.parse('{"bar": 10, "foo": 20}')
71 + var jop = JSON.parse('{"bar": 10, "__proto__": { }, "foo": 20}') 71 + var jop = JSON.parse('{"bar": 10, "__proto__": { }, "foo": 20}')
72 + var a = [1,2,3,4]; 72 + var a = [1,2,3,4];
73 + var o = { bar: 10, foo: 20 }; 73 + var o = { bar: 10, foo: 20 };
74 + var op = { __proto__: { set bar(v) { assertUnreachable("bset"); } }, 74 + var op = { __proto__: { set bar(v) { assertUnreachable("bset"); } },
75 + bar: 10 }; 75 + bar: 10 };
76 + // In function scope. 76 + // In function scope.
77 + inFunction(); 77 + inFunction();
78 +} 78 +}
OLDNEW
« src/handles.cc ('K') | « src/runtime.cc ('k') | test/mjsunit/regress/regress-192.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698