1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

BREAKING: remove Intl.v8BreakIterator (#14864)

This is a non-standard API that is mostly replaced by `Intl.Segmenter`.
This commit is contained in:
Luca Casonato 2022-06-15 05:04:30 +02:00 committed by GitHub
parent 8bfa89a478
commit 5bde4c7eca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View file

@ -0,0 +1,7 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "./test_util.ts";
Deno.test("Intl.v8BreakIterator should be undefined", () => {
// @ts-expect-error Intl.v8BreakIterator is not a standard API
assertEquals(Intl.v8BreakIterator, undefined);
});

View file

@ -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 {