Fix: Parser::HandleSourceURLComments was making gcmole unhappy (rightfully).
R=yangguo@chromium.org BUG= Review URL: https://codereview.chromium.org/362243005 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22153 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
128086642b
commit
be0d2fbe1f
@ -3887,12 +3887,13 @@ void Parser::RegisterTargetUse(Label* target, Target* stop) {
|
||||
|
||||
void Parser::HandleSourceURLComments() {
|
||||
if (scanner_.source_url()->length() > 0) {
|
||||
info_->script()->set_source_url(
|
||||
*scanner_.source_url()->Internalize(isolate()));
|
||||
Handle<String> source_url = scanner_.source_url()->Internalize(isolate());
|
||||
info_->script()->set_source_url(*source_url);
|
||||
}
|
||||
if (scanner_.source_mapping_url()->length() > 0) {
|
||||
info_->script()->set_source_mapping_url(
|
||||
*scanner_.source_mapping_url()->Internalize(isolate()));
|
||||
Handle<String> source_mapping_url =
|
||||
scanner_.source_mapping_url()->Internalize(isolate());
|
||||
info_->script()->set_source_mapping_url(*source_mapping_url);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user