node/test/parallel/test-intl-v8BreakIterator.js
Aqui Tsuchida 6a99224c24 test: use common.hasIntl instead of typeof Intl
PR-URL: https://github.com/nodejs/node/pull/17311
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-11-26 08:55:05 -08:00

11 lines
261 B
JavaScript

'use strict';
const common = require('../common');
const assert = require('assert');
const vm = require('vm');
if (!common.hasIntl)
common.skip('missing Intl');
assert(!('v8BreakIterator' in Intl));
assert(!vm.runInNewContext('"v8BreakIterator" in Intl'));