From be0d2fbe1f9e14e7392f86f4e39b3f336b26c40c Mon Sep 17 00:00:00 2001 From: "marja@chromium.org" Date: Wed, 2 Jul 2014 12:01:56 +0000 Subject: [PATCH] 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 --- src/parser.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/parser.cc b/src/parser.cc index 3adb6d26cd..7566bc3e34 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -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 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 source_mapping_url = + scanner_.source_mapping_url()->Internalize(isolate()); + info_->script()->set_source_mapping_url(*source_mapping_url); } }