Skip to content

Commit ec931bf

Browse files
authored
change "mode strict" to "use strict" (#1275)
1 parent 704b602 commit ec931bf

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

packages/core/spec/lib/OneBehindFetchSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
'mode strict';
16+
'use strict';
1717

1818
const oneBehindFetch = require('../../lib/oneBehindFetch.js');
1919
const mockFetch = require('fetch-mock');

packages/optimizer/build/downloadRuntimeParameters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
'mode strict';
16+
'use strict';
1717

1818
const RuntimeVersion = require('@ampproject/toolbox-runtime-version/lib/RuntimeVersion');
1919
const fetch = require('node-fetch');

packages/optimizer/lib/AmpConstants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
'mode strict';
16+
'use strict';
1717

1818
const {hasAttribute} = require('./NodeUtils');
1919

packages/optimizer/lib/Extensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
'mode strict';
16+
'use strict';
1717

1818
module.exports = {
1919
isRenderDelayingExtension: function (script) {

packages/optimizer/lib/fetchRuntimeParameters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
'mode strict';
16+
'use strict';
1717

1818
const URL_COMPONENT_VERSIONS =
1919
'https://raw.githubusercontent.com/ampproject/amphtml/main/build-system/compile/bundles.config.extensions.json';

packages/optimizer/spec/helpers/Utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
'mode strict';
17+
'use strict';
1818

1919
const {join} = require('path');
2020
const {lstatSync, readdirSync, readFileSync, writeFileSync} = require('fs');

0 commit comments

Comments
 (0)