DescriptionFunction::GetScriptOrigin should supply sourceURL when script name is not available.
GetScriptOrigin is used for DevTools instrumentation.
If inspected call-site is inside "eval" then returned script name is "undefined". To fix this problem we can use the "nameOrSourceURL" method of script-wrapper.
This is a re-upload of https://codereview.appspot.com/6811090/ for the purpose of landing.
BUG=159413
Committed: https://code.google.com/p/v8/source/detail?r=12929
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|