Index: src/snapshot/serializer.cc |
diff --git a/src/snapshot/serializer.cc b/src/snapshot/serializer.cc |
index 397fe28f05661f52e46c69c04b427861afe94c11..89fd111b80cbb88c7c7f8d7af102797d63e8c505 100644 |
--- a/src/snapshot/serializer.cc |
+++ b/src/snapshot/serializer.cc |
@@ -668,9 +668,10 @@ bool Serializer::ObjectSerializer::SerializeExternalNativeSourceString( |
int builtin_count, |
v8::String::ExternalOneByteStringResource** resource_pointer, |
FixedArray* source_cache, int resource_index) { |
+ Isolate* isolate = serializer_->isolate(); |
for (int i = 0; i < builtin_count; i++) { |
Object* source = source_cache->get(i); |
- if (!source->IsUndefined()) { |
+ if (!source->IsUndefined(isolate)) { |
ExternalOneByteString* string = ExternalOneByteString::cast(source); |
typedef v8::String::ExternalOneByteStringResource Resource; |
const Resource* resource = string->resource(); |