Skip to content

Calling Intl.v8BreakIterator makes the process crash #3111

@targos

Description

@targos
node -p "new Intl.v8BreakIterator()"


#
# Fatal error in , line 0
# Failed to create ICU break iterator, are ICU data files missing?
#

==== C stack trace ===============================

 1: V8_Fatal
 2: v8::internal::BreakIterator::InitializeBreakIterator(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::JSObject>)
 3: v8::internal::Runtime_CreateBreakIterator(int, v8::internal::Object**, v8::internal::Isolate*)
 4: 0x35e1cb4060bb
[1]    14295 illegal hardware instruction (core dumped)  node -p "new Intl.v8BreakIterator()"

This is the line where it happens:

FATAL("Failed to create ICU break iterator, are ICU data files missing?");

I guess that the feature v8 is trying to load is not available with small-icu ? Anyway it seems wrong to experience a fatal error in this case.

Metadata

Metadata

Assignees

Labels

i18n-apiIssues and PRs related to the i18n implementation.v8 engineIssues and PRs related to the V8 dependency.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions