From 5bde4c7ecae35cb29a003504eafa03f1776ee3a0 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 15 Jun 2022 05:04:30 +0200 Subject: BREAKING: remove `Intl.v8BreakIterator` (#14864) This is a non-standard API that is mostly replaced by `Intl.Segmenter`. --- runtime/js/99_main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'runtime/js') 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 { -- cgit v1.2.3