Commit f65a023f authored by yangguo's avatar yangguo Committed by Commit bot

Consistently use "use strict" where possible.

R=rossberg@chromium.org

Review URL: https://codereview.chromium.org/789163002

Cr-Commit-Position: refs/heads/master@{#25748}
parent d28b2a19
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
'use strict'; "use strict";
// This file relies on the fact that the following declaration has been made // This file relies on the fact that the following declaration has been made
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
'use strict'; "use strict";
// This file relies on the fact that the following declaration has been made // This file relies on the fact that the following declaration has been made
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
// var $Function = global.Function; // var $Function = global.Function;
// var $Array = global.Array; // var $Array = global.Array;
"use strict";
(function() { (function() {
function FunctionToMethod(homeObject) { function FunctionToMethod(homeObject) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
'use strict'; "use strict";
// This file relies on the fact that the following declaration has been made // This file relies on the fact that the following declaration has been made
// in runtime.js: // in runtime.js:
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
'use strict'; "use strict";
var callSiteCache = new $Map; var callSiteCache = new $Map;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
'use strict'; "use strict";
// This file relies on the fact that the following declaration has been made // This file relies on the fact that the following declaration has been made
// in runtime.js and symbol.js: // in runtime.js and symbol.js:
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
'use strict'; "use strict";
// This file relies on the fact that the following declaration has been made // This file relies on the fact that the following declaration has been made
// in runtime.js: // in runtime.js:
......
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
// All unchanged functions have their positions updated accordingly. // All unchanged functions have their positions updated accordingly.
// //
// LiveEdit namespace is declared inside a single function constructor. // LiveEdit namespace is declared inside a single function constructor.
"use strict";
Debug.LiveEdit = new function() { Debug.LiveEdit = new function() {
// Forward declaration for minifier. // Forward declaration for minifier.
...@@ -953,7 +956,7 @@ Debug.LiveEdit = new function() { ...@@ -953,7 +956,7 @@ Debug.LiveEdit = new function() {
FunctionPatchabilityStatus.SymbolName = function(code) { FunctionPatchabilityStatus.SymbolName = function(code) {
var enumeration = FunctionPatchabilityStatus; var enumeration = FunctionPatchabilityStatus;
for (name in enumeration) { for (var name in enumeration) {
if (enumeration[name] == code) { if (enumeration[name] == code) {
return name; return name;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
'use strict'; "use strict";
// This file relies on the fact that the following declaration has been made // This file relies on the fact that the following declaration has been made
......
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