summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index e96482ba2..1d046d161 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -1,10 +1,13 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+"use strict";
+
// Removes the `__proto__` for security reasons. This intentionally makes
// Deno non compliant with ECMA-262 Annex B.2.2.1
-//
-"use strict";
delete Object.prototype.__proto__;
+// Remove Intl.v8BreakIterator because it is a non-standard API.
+delete Intl.v8BreakIterator;
+
((window) => {
const core = Deno.core;
const {