summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDeveloping <pawanakhil.dasari@gmail.com>2021-02-05 03:48:32 +0530
committerGitHub <noreply@github.com>2021-02-04 23:18:32 +0100
commit923214c53725651792f6d55c5401bf6b475622ea (patch)
tree56fe084e911c12673aa52ce127f17bafba9175d9 /core
parentb77fcbc518428429e39f5ba94e41fcd0418ee7a0 (diff)
chore: use strict mode for internal runtime, core, and op_crates js (#9391)
Diffstat (limited to 'core')
-rw-r--r--core/core.js1
-rw-r--r--core/core_test.js1
-rw-r--r--core/encode_decode_test.js1
-rw-r--r--core/error.js1
4 files changed, 4 insertions, 0 deletions
diff --git a/core/core.js b/core/core.js
index 5a15aff8c..57eb8b07e 100644
--- a/core/core.js
+++ b/core/core.js
@@ -15,6 +15,7 @@ SharedQueue Binary Layout
| RECORDS (*MAX_RECORDS) ...
+---------------------------------------------------------------+
*/
+"use strict";
((window) => {
const MAX_RECORDS = 100;
diff --git a/core/core_test.js b/core/core_test.js
index 58dff73ac..89385a0aa 100644
--- a/core/core_test.js
+++ b/core/core_test.js
@@ -1,4 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
+"use strict";
function assert(cond) {
if (!cond) {
diff --git a/core/encode_decode_test.js b/core/encode_decode_test.js
index dcdb82d8e..85f787fdc 100644
--- a/core/encode_decode_test.js
+++ b/core/encode_decode_test.js
@@ -1,4 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
+"use strict";
function assert(cond) {
if (!cond) {
throw Error("assert");
diff --git a/core/error.js b/core/error.js
index 300599666..b47e5d881 100644
--- a/core/error.js
+++ b/core/error.js
@@ -1,4 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
+"use strict";
((window) => {
// Some of the code here is adapted directly from V8 and licensed under a BSD