Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index dcdc16b03823e170f8e0050d6c804a26dc1fa8ac..f18375f57f6158469796173158dbf95c3df5ba7e 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -5350,13 +5350,12 @@ IterationStatement* Parser::LookupContinueTarget(const AstRawString* label, |
void Parser::HandleSourceURLComments(Isolate* isolate, Handle<Script> script) { |
- if (scanner_.source_url()->length() > 0) { |
- Handle<String> source_url = scanner_.source_url()->Internalize(isolate); |
+ Handle<String> source_url = scanner_.SourceUrl(isolate); |
+ if (!source_url.is_null()) { |
script->set_source_url(*source_url); |
} |
- if (scanner_.source_mapping_url()->length() > 0) { |
- Handle<String> source_mapping_url = |
- scanner_.source_mapping_url()->Internalize(isolate); |
+ Handle<String> source_mapping_url = scanner_.SourceMappingUrl(isolate); |
+ if (!source_mapping_url.is_null()) { |
script->set_source_mapping_url(*source_mapping_url); |
} |
} |