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) --- core/core.js | 1 + core/core_test.js | 1 + core/encode_decode_test.js | 1 + core/error.js | 1 + 4 files changed, 4 insertions(+) (limited to 'core') 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 -- cgit v1.2.3