From 923214c53725651792f6d55c5401bf6b475622ea Mon Sep 17 00:00:00 2001 From: Developing Date: Fri, 5 Feb 2021 03:48:32 +0530 Subject: chore: use strict mode for internal runtime, core, and op_crates js (#9391) --- op_crates/fetch/01_fetch_util.js | 1 + op_crates/fetch/03_dom_iterable.js | 1 + op_crates/fetch/11_streams.js | 1 + op_crates/fetch/20_headers.js | 1 + op_crates/fetch/21_file.js | 1 + op_crates/fetch/26_fetch.js | 1 + 6 files changed, 6 insertions(+) (limited to 'op_crates/fetch') diff --git a/op_crates/fetch/01_fetch_util.js b/op_crates/fetch/01_fetch_util.js index b747037bd..ff76421a1 100644 --- a/op_crates/fetch/01_fetch_util.js +++ b/op_crates/fetch/01_fetch_util.js @@ -1,4 +1,5 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. +"use strict"; ((window) => { function requiredArguments( diff --git a/op_crates/fetch/03_dom_iterable.js b/op_crates/fetch/03_dom_iterable.js index 54e1c9227..2e9f6d3ea 100644 --- a/op_crates/fetch/03_dom_iterable.js +++ b/op_crates/fetch/03_dom_iterable.js @@ -1,4 +1,5 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. +"use strict"; ((window) => { const { requiredArguments } = window.__bootstrap.fetchUtil; diff --git a/op_crates/fetch/11_streams.js b/op_crates/fetch/11_streams.js index b7a9acca0..af9cc321f 100644 --- a/op_crates/fetch/11_streams.js +++ b/op_crates/fetch/11_streams.js @@ -4,6 +4,7 @@ /// /// /// +"use strict"; ((window) => { const customInspect = Symbol.for("Deno.customInspect"); diff --git a/op_crates/fetch/20_headers.js b/op_crates/fetch/20_headers.js index 27626018a..df11d40b6 100644 --- a/op_crates/fetch/20_headers.js +++ b/op_crates/fetch/20_headers.js @@ -1,4 +1,5 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. +"use strict"; ((window) => { const { DomIterableMixin } = window.__bootstrap.domIterable; diff --git a/op_crates/fetch/21_file.js b/op_crates/fetch/21_file.js index d5160ece2..4a052576c 100644 --- a/op_crates/fetch/21_file.js +++ b/op_crates/fetch/21_file.js @@ -8,6 +8,7 @@ /// /// /// +"use strict"; ((window) => { // TODO(lucacasonato): this needs to not be hardcoded and instead depend on diff --git a/op_crates/fetch/26_fetch.js b/op_crates/fetch/26_fetch.js index 58e2cab85..d4b2680ec 100644 --- a/op_crates/fetch/26_fetch.js +++ b/op_crates/fetch/26_fetch.js @@ -8,6 +8,7 @@ /// /// /// +"use strict"; ((window) => { const core = window.Deno.core; -- cgit v1.2.3