Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(519)

Issue 6811090: Function::GetScriptOrigin should supply sourceURL when script name is not available.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by eustas
Modified:
10 years, 5 months ago
Reviewers:
yangguo, Jakob
CC:
caseq, v8-dev_googlegroups.com
Base URL:
http://git.chromium.org/external/v8.git@master
Visibility:
Public.

Description

GetScriptOrigin is used for DevTools instrumentation. If inspected call-site is inside "eval" then returned script name is "undefined". This causes: http://code.google.com/p/chromium/issues/detail?id=159413 https://bugs.webkit.org/show_bug.cgi?id=101334 To fix this problem we can use "nameOrSourceURL" method of script-wrapper.

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -13 lines) Patch
M src/api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/handles.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/handles.cc View 1 chunk +19 lines, -0 lines 3 comments Download
M src/isolate.cc View 1 chunk +1 line, -12 lines 0 comments Download

Messages

Total messages: 7
eustas
Please take a look at proposed fix.
12 years, 1 month ago (2012-11-07 12:32:07 UTC) #1
Jakob
LGTM except for formatting. I can fix that and land this. In the future, please ...
12 years, 1 month ago (2012-11-07 14:25:43 UTC) #2
yangguo
https://codereview.appspot.com/6811090/diff/1/src/handles.cc File src/handles.cc (right): https://codereview.appspot.com/6811090/diff/1/src/handles.cc#newcode596 src/handles.cc:596: Handle<Object> GetScriptNameOrSourceURL(Handle<Script> script) { I think handles.cc is the ...
12 years, 1 month ago (2012-11-07 14:48:28 UTC) #3
yangguo
On 2012/11/07 14:48:28, yangguo wrote: > https://codereview.appspot.com/6811090/diff/1/src/handles.cc > File src/handles.cc (right): > > https://codereview.appspot.com/6811090/diff/1/src/handles.cc#newcode596 > ...
12 years, 1 month ago (2012-11-07 14:50:04 UTC) #4
eustas
Hello, Jakob. Could You land it, please? Thanks.
12 years, 1 month ago (2012-11-12 11:48:40 UTC) #5
Jakob
Sure. I was waiting for our next push to trunk, which will probably happen today. ...
12 years, 1 month ago (2012-11-12 11:55:23 UTC) #6
Jakob
12 years, 1 month ago (2012-11-12 12:35:04 UTC) #7
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b