Skip to content

Commit f65a023

Browse files
hashseedCommit bot
authored andcommitted
Consistently use "use strict" where possible.
R=rossberg@chromium.org Review URL: https://codereview.chromium.org/789163002 Cr-Commit-Position: refs/heads/master@{#25748}
1 parent d28b2a1 commit f65a023

9 files changed

Lines changed: 13 additions & 8 deletions

src/array-iterator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
'use strict';
5+
"use strict";
66

77

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

src/collection-iterator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
'use strict';
5+
"use strict";
66

77

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

src/harmony-classes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// var $Function = global.Function;
88
// var $Array = global.Array;
99

10+
"use strict";
11+
1012

1113
(function() {
1214
function FunctionToMethod(homeObject) {

src/harmony-string.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
'use strict';
5+
"use strict";
66

77
// This file relies on the fact that the following declaration has been made
88
// in runtime.js:

src/harmony-templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
'use strict';
5+
"use strict";
66

77
var callSiteCache = new $Map;
88

src/harmony-tostring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
'use strict';
5+
"use strict";
66

77
// This file relies on the fact that the following declaration has been made
88
// in runtime.js and symbol.js:

src/harmony-typedarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
'use strict';
5+
"use strict";
66

77
// This file relies on the fact that the following declaration has been made
88
// in runtime.js:

src/liveedit-debugger.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
// All unchanged functions have their positions updated accordingly.
2020
//
2121
// LiveEdit namespace is declared inside a single function constructor.
22+
23+
"use strict";
24+
2225
Debug.LiveEdit = new function() {
2326

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

954957
FunctionPatchabilityStatus.SymbolName = function(code) {
955958
var enumeration = FunctionPatchabilityStatus;
956-
for (name in enumeration) {
959+
for (var name in enumeration) {
957960
if (enumeration[name] == code) {
958961
return name;
959962
}

src/string-iterator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
'use strict';
5+
"use strict";
66

77

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

0 commit comments

Comments
 (0)