| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index cf58624ed2e5e6970d1f9b2365e9b8014b50202b..e49ca4b3574c40d4b7c4e1378702b0a5c97704b9 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -2779,7 +2779,8 @@ Object* Heap::AllocateStringFromUtf8(Vector<const char> string,
|
| PretenureFlag pretenure) {
|
| // Count the number of characters in the UTF-8 string and check if
|
| // it is an ASCII string.
|
| - Access<Scanner::Utf8Decoder> decoder(Scanner::utf8_decoder());
|
| + Access<Scanner::Utf8Decoder> decoder(isolate_->
|
| + scanner_character_classes()->utf8_decoder());
|
| decoder->Reset(string.start(), string.length());
|
| int chars = 0;
|
| bool is_ascii = true;
|
|
|