Fix presubmit error.

Review URL: http://codereview.chromium.org/5891001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6024 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5f962f2e
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
// http://code.google.com/p/chromium/issues/detail?id=66099. // http://code.google.com/p/chromium/issues/detail?id=66099.
function Item(val) { function Item(val) {
this.value = val; this.value = val;
} }
...@@ -38,17 +38,17 @@ var array1 = new Array(size); ...@@ -38,17 +38,17 @@ var array1 = new Array(size);
function myToString() { function myToString() {
array1.splice(0, 1); array1.splice(0, 1);
return this.value.toString(); return this.value.toString();
} }
function test() { function test() {
for (var i = 0; i < size; i++) { for (var i = 0; i < size; i++) {
array1[i] = new Item(i); array1[i] = new Item(i);
array1[i].toString = myToString; array1[i].toString = myToString;
} }
array1.sort(); array1.sort();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment