Index: src/extensions/experimental/break-iterator.cc |
diff --git a/src/extensions/experimental/break-iterator.cc b/src/extensions/experimental/break-iterator.cc |
index b00b492b1cb09a6f70699706e03e806e4130475b..0ab9ce14a671b29ed958ed063928270dd2fd6c47 100644 |
--- a/src/extensions/experimental/break-iterator.cc |
+++ b/src/extensions/experimental/break-iterator.cc |
@@ -82,8 +82,9 @@ v8::Handle<v8::Value> BreakIterator::BreakIteratorAdoptText( |
} |
v8::Local<v8::String> text_value = args[0]->ToString(); |
- UnicodeString text(*v8::String::Value(text_value), |
- text_value->Length()); |
+ const UChar* text = |
+ reinterpret_cast<const UChar*>(*v8::String::Value(text_value)); |
+ UnicodeString text(text, text_value->Length()); |
break_iterator->setText(text); |