mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
668ad44922
It was never an official Ecma-402 API, it is about to be superseded by `Intl.Segmenter` and it's prone to crash under some circumstances. Searches don't turn up any usage in the wild and the recommendation from the V8 team is to remove it. Now seems like a good a time as any to do that. Fixes: https://github.com/nodejs/node/issues/8865 Fixes: https://github.com/nodejs/node/issues/14909 Refs: https://github.com/tc39/proposal-intl-segmenter Refs: https://chromium-review.googlesource.com/c/v8/v8/+/620755 PR-URL: https://github.com/nodejs/node/pull/15238 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
11 lines
273 B
JavaScript
11 lines
273 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const vm = require('vm');
|
|
|
|
if (typeof Intl === 'undefined')
|
|
common.skip('missing Intl');
|
|
|
|
assert(!('v8BreakIterator' in Intl));
|
|
assert(!vm.runInNewContext('"v8BreakIterator" in Intl'));
|