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:
marja@chromium.org 2014-07-02 12:01:56 +00:00
parent 128086642b
commit be0d2fbe1f

View File

@ -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);
}
}