summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/strict-mode-blocks.js
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Tests/strict-mode-blocks.js')
-rw-r--r--Libraries/LibJS/Tests/strict-mode-blocks.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/Libraries/LibJS/Tests/strict-mode-blocks.js b/Libraries/LibJS/Tests/strict-mode-blocks.js
deleted file mode 100644
index 35d0264664..0000000000
--- a/Libraries/LibJS/Tests/strict-mode-blocks.js
+++ /dev/null
@@ -1,25 +0,0 @@
-test("Issue #3641, strict mode should be function- or program-level, not block-level", () => {
- function func() {
- expect(isStrictMode()).toBeFalse();
-
- // prettier-ignore
- {
- "use strict";
- expect(isStrictMode()).toBeFalse();
- }
-
- // prettier-ignore
- if (true) {
- "use strict";
- expect(isStrictMode()).toBeFalse();
- }
-
- // prettier-ignore
- do {
- "use strict";
- expect(isStrictMode()).toBeFalse();
- } while (false);
- }
-
- func();
-});