Index: tools/lexer-shell.cc |
diff --git a/tools/lexer-shell.cc b/tools/lexer-shell.cc |
index 0610e7f70d22887114047fe32514c6038a22672e..7471db0e6aee28c970d4815ca8f099602373d497 100644 |
--- a/tools/lexer-shell.cc |
+++ b/tools/lexer-shell.cc |
@@ -104,6 +104,7 @@ class BaselineScanner { |
Vector<const uint16_t>( |
reinterpret_cast<const uint16_t*>(source_), |
length / 2)); |
+ CHECK_NOT_EMPTY_HANDLE(isolate, result); |
stream_ = |
new GenericStringUtf16CharacterStream(result, 0, result->length()); |
break; |
@@ -111,6 +112,7 @@ class BaselineScanner { |
case LATIN1: { |
Handle<String> result = isolate->factory()->NewStringFromOneByte( |
Vector<const uint8_t>(source_, length)); |
+ CHECK_NOT_EMPTY_HANDLE(isolate, result); |
stream_ = |
new GenericStringUtf16CharacterStream(result, 0, result->length()); |
break; |