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

Unified Diff: test/mjsunit/setter-on-constructor-prototype.js

Issue 8888006: Make more JS files beter match the coding standard. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 9 years 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
« no previous file with comments | « test/mjsunit/scanner.js ('k') | test/mjsunit/simple-constructor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/setter-on-constructor-prototype.js
diff --git a/test/mjsunit/setter-on-constructor-prototype.js b/test/mjsunit/setter-on-constructor-prototype.js
index a74f7da7b36fbb8233643961a3b1892edf1f8c45..9bafaa55824ae8fabc5ae598b07d044dd7cd5069 100644
--- a/test/mjsunit/setter-on-constructor-prototype.js
+++ b/test/mjsunit/setter-on-constructor-prototype.js
@@ -30,7 +30,7 @@
function RunTest(ensure_fast_case) {
function C1() {
this.x = 23;
- };
+ }
C1.prototype = { set x(value) { this.y = 23; } };
if (ensure_fast_case) {
%ToFastProperties(C1.prototype);
@@ -45,11 +45,11 @@ function RunTest(ensure_fast_case) {
function C2() {
this.x = 23;
- };
+ }
C2.prototype = { };
C2.prototype.__proto__ = { set x(value) { this.y = 23; } };
if (ensure_fast_case) {
- %ToFastProperties(C2.prototype.__proto__)
+ %ToFastProperties(C2.prototype.__proto__);
}
for (var i = 0; i < 10; i++) {
@@ -61,7 +61,7 @@ function RunTest(ensure_fast_case) {
function C3() {
this.x = 23;
- };
+ }
C3.prototype = { };
C3.prototype.__defineSetter__('x', function(value) { this.y = 23; });
if (ensure_fast_case) {
@@ -77,7 +77,7 @@ function RunTest(ensure_fast_case) {
function C4() {
this.x = 23;
- };
+ }
C4.prototype = { };
C4.prototype.__proto__ = { };
C4.prototype.__proto__.__defineSetter__('x', function(value) { this.y = 23; });
@@ -94,7 +94,7 @@ function RunTest(ensure_fast_case) {
function D() {
this.x = 23;
- };
+ }
D.prototype = 1;
if (ensure_fast_case) {
%ToFastProperties(D.prototype);
« no previous file with comments | « test/mjsunit/scanner.js ('k') | test/mjsunit/simple-constructor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698