Reviewers: rossberg,

Description:
Consistently use "use strict" where possible.

[email protected]

Please review this at https://codereview.chromium.org/789163002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+13, -8 lines):
  M src/array-iterator.js
  M src/collection-iterator.js
  M src/harmony-classes.js
  M src/harmony-string.js
  M src/harmony-templates.js
  M src/harmony-tostring.js
  M src/harmony-typedarray.js
  M src/liveedit-debugger.js
  M src/string-iterator.js


Index: src/array-iterator.js
diff --git a/src/array-iterator.js b/src/array-iterator.js
index 864d5c1fc2aa92b6fd2b5b8a2c1e316a412b5139..17d55f09b20ad8057e20d55acd16efb65bdaccf1 100644
--- a/src/array-iterator.js
+++ b/src/array-iterator.js
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.

-'use strict';
+"use strict";


// This file relies on the fact that the following declaration has been made
Index: src/collection-iterator.js
diff --git a/src/collection-iterator.js b/src/collection-iterator.js
index 92d45a9cd2668dae053257f994e81966be8a8ecb..c1a9a2767365cab880dbc1fa212026f69e1ed970 100644
--- a/src/collection-iterator.js
+++ b/src/collection-iterator.js
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.

-'use strict';
+"use strict";


// This file relies on the fact that the following declaration has been made
Index: src/harmony-classes.js
diff --git a/src/harmony-classes.js b/src/harmony-classes.js
index b6605a902c3059bef54ad3b0956931fcaf19e1d3..31c62611ef525cc26353dd56b5b8075f135fd939 100644
--- a/src/harmony-classes.js
+++ b/src/harmony-classes.js
@@ -7,6 +7,8 @@
 // var $Function = global.Function;
 // var $Array = global.Array;

+"use strict";
+

 (function() {
   function FunctionToMethod(homeObject) {
Index: src/harmony-string.js
diff --git a/src/harmony-string.js b/src/harmony-string.js
index c4717df5dbdbf86c0584b3c52ea3e8fdba433698..6bbe139e87a3a2e96227799fea537261e9f87b51 100644
--- a/src/harmony-string.js
+++ b/src/harmony-string.js
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.

-'use strict';
+"use strict";

// This file relies on the fact that the following declaration has been made
 // in runtime.js:
Index: src/harmony-templates.js
diff --git a/src/harmony-templates.js b/src/harmony-templates.js
index 41ce838aa18cd2b63b0cf20870ac240b191688ba..254f434fdfe0e6eb75a268b8774c6fa7a49b261e 100644
--- a/src/harmony-templates.js
+++ b/src/harmony-templates.js
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.

-'use strict';
+"use strict";

 var callSiteCache = new $Map;

Index: src/harmony-tostring.js
diff --git a/src/harmony-tostring.js b/src/harmony-tostring.js
index 543d730994b8fb75d5911c7183ec7aa371616201..0336456bb2827c13c75bd5f823731a2223e65540 100644
--- a/src/harmony-tostring.js
+++ b/src/harmony-tostring.js
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.

-'use strict';
+"use strict";

// This file relies on the fact that the following declaration has been made
 // in runtime.js and symbol.js:
Index: src/harmony-typedarray.js
diff --git a/src/harmony-typedarray.js b/src/harmony-typedarray.js
index 014206c4cba8400cf745b9295d5cb223695ad6cb..c2eb452af378ca1b2b240653a2de04e06777df16 100644
--- a/src/harmony-typedarray.js
+++ b/src/harmony-typedarray.js
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.

-'use strict';
+"use strict";

// This file relies on the fact that the following declaration has been made
 // in runtime.js:
Index: src/liveedit-debugger.js
diff --git a/src/liveedit-debugger.js b/src/liveedit-debugger.js
index 07214f9657c0b3a99fa7809c41c28fe96234554b..eaa23834c964d22737de4b954a4142edd53a9cc9 100644
--- a/src/liveedit-debugger.js
+++ b/src/liveedit-debugger.js
@@ -19,6 +19,9 @@
 // All unchanged functions have their positions updated accordingly.
 //
 // LiveEdit namespace is declared inside a single function constructor.
+
+"use strict";
+
 Debug.LiveEdit = new function() {

   // Forward declaration for minifier.
@@ -953,7 +956,7 @@ Debug.LiveEdit = new function() {

   FunctionPatchabilityStatus.SymbolName = function(code) {
     var enumeration = FunctionPatchabilityStatus;
-    for (name in enumeration) {
+    for (var name in enumeration) {
       if (enumeration[name] == code) {
         return name;
       }
Index: src/string-iterator.js
diff --git a/src/string-iterator.js b/src/string-iterator.js
index dcaddaf2134dead96c0d8d04a3fd5b75adaab5c6..f5eef37716ba98180774ec228cf80115b633a603 100644
--- a/src/string-iterator.js
+++ b/src/string-iterator.js
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.

-'use strict';
+"use strict";


// This file relies on the fact that the following declaration has been made


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to