Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 250562a2aa17a0a8c47dfc8567b449b5ccade0f0..405f6650648366a53aeb7d99ed951c4682aceaaf 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -57,6 +57,8 @@ Handle<String> Bootstrapper::NativesSourceLookup(int index) { |
Handle<String> source_code = isolate_->factory() |
->NewExternalStringFromOneByte(resource) |
.ToHandleChecked(); |
+ // Mark this external string with a special map. |
+ source_code->set_map(isolate_->heap()->native_source_string_map()); |
heap->natives_source_cache()->set(index, *source_code); |
} |
Handle<Object> cached_source(heap->natives_source_cache()->get(index), |