v8/test/inspector/debugger/script-on-after-compile-expected.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

772 lines
17 KiB
Plaintext
Raw Normal View History

Checks that inspector correctly process compiled scripts
scriptParsed
{
scriptSource : function foo1(){}//# sourceURL=oneline.js<nl>
}
{
endColumn : 0
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 1912c266357e416d5e19323209ce6b851f2e0f2c
isLiveEdit : false
isModule : false
length : 42
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : oneline.js
}
scriptParsed
{
scriptSource : function foo2(){}//# sourceURL=oneline-without-nl.js
}
{
endColumn : 52
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : true
hash : 10f9f2639b93aaa6175107400af8e91f3b0f471b
isLiveEdit : false
isModule : false
length : 52
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : oneline-without-nl.js
}
scriptParsed
{
scriptSource : function foo3(){}<nl>//# sourceURL=twoline.js<nl>
}
{
endColumn : 0
endLine : 2
executionContextId : <executionContextId>
hasSourceURL : true
hash : 0f8af679a498b4814efa01b934ce49ca06bf4ee7
isLiveEdit : false
isModule : false
length : 43
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : twoline.js
}
scriptParsed
{
scriptSource : function foo4(){}<nl><nl>//# sourceURL=threeline.js<nl>
}
{
endColumn : 0
endLine : 3
executionContextId : <executionContextId>
hasSourceURL : true
hash : 2cc1f4f316e466c0110dc50790dd520e45de6763
isLiveEdit : false
isModule : false
length : 46
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : threeline.js
}
scriptParsed
{
scriptSource : function foo5(){}//# sourceMappingURL=oneline-map<nl>
}
{
endColumn : 0
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : false
hash : 127829554266b55666f9cf02c2c7a05463c8c723
isLiveEdit : false
isModule : false
length : 50
scriptId : <scriptId>
sourceMapURL : oneline-map
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo6(){}//# sourceMappingURL=oneline-without-nl-map
}
{
endColumn : 60
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : false
hash : 1385e0fc24082a91521585943bfcce52262a7f4b
isLiveEdit : false
isModule : false
length : 60
scriptId : <scriptId>
sourceMapURL : oneline-without-nl-map
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo7(){}<nl>//# sourceMappingURL=twoline-map<nl>
}
{
endColumn : 0
endLine : 2
executionContextId : <executionContextId>
hasSourceURL : false
hash : 2b15af1d4127ae68644e0ce4443021185dbe2d2f
isLiveEdit : false
isModule : false
length : 51
scriptId : <scriptId>
sourceMapURL : twoline-map
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo8(){}<nl><nl>//# sourceMappingURL=threeline-map<nl>
}
{
endColumn : 0
endLine : 3
executionContextId : <executionContextId>
hasSourceURL : false
hash : 0036aba78093d0cf2ee6350c84b06ffe53aff63e
isLiveEdit : false
isModule : false
length : 54
scriptId : <scriptId>
sourceMapURL : threeline-map
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo9(){}//# sourceMappingURL=source-mapping-url-map<nl>//# sourceURL=source-url.js
}
{
endColumn : 27
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 374ed6be308871fa14f434e504168cba446836db
isLiveEdit : false
isModule : false
length : 88
scriptId : <scriptId>
sourceMapURL : source-mapping-url-map
startColumn : 0
startLine : 0
url : source-url.js
}
scriptParsed
{
scriptSource : function foo10(){}//# sourceURL=source-url.js<nl>//# sourceMappingURL=source-mapping-url-map
}
{
endColumn : 43
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 0db017360f0b77f12660e00ca287b54b602a6795
isLiveEdit : false
isModule : false
length : 89
scriptId : <scriptId>
sourceMapURL : source-mapping-url-map
startColumn : 0
startLine : 0
url : source-url.js
}
scriptParsed
{
scriptSource : function foo11(){}<nl>//# sourceURL=end1.js
}
{
endColumn : 21
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 096615cf17450c8153564f8c77c9b0421927e011
isLiveEdit : false
isModule : false
length : 40
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : end1.js
}
scriptParsed
{
scriptSource : function foo12(){}<nl>//# sourceURL=end2.js
}
{
endColumn : 22
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 1314f0ef0397feb553564f8c405d35f91927e011
isLiveEdit : false
isModule : false
length : 41
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : end2.js
}
scriptParsed
{
scriptSource : function foo13(){}
}
{
endColumn : 18
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : false
hash : 033b33d18f0514168154be7f45f542e4811403e2
isLiveEdit : false
isModule : false
length : 18
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo15(){}; eval("function foo14(){}//# sourceURL=eval.js")//# sourceURL=eval-wrapper.js
}
{
endColumn : 96
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : true
hash : 01fcc474486991b12de451e963f458f0767397c8
isLiveEdit : false
isModule : false
length : 96
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : eval-wrapper.js
}
scriptParsed
{
scriptSource : function foo14(){}//# sourceURL=eval.js
}
{
endColumn : 39
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : true
hash : 06c3a0dd6160579b49d51af109a969910e2e33fd
isLiveEdit : false
isModule : false
length : 39
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : eval.js
}
scriptParsed
{
scriptSource : function foo16(){}<nl>
}
{
endColumn : 0
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : false
hash : 033b33d125db477a8154be7f45f542e4518bf49c
isLiveEdit : false
isModule : false
length : 19
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo17(){}<nl><nl>
}
{
endColumn : 0
endLine : 2
executionContextId : <executionContextId>
hasSourceURL : false
hash : 033b33d1122e39ae8154be7f45f542e438020797
isLiveEdit : false
isModule : false
length : 20
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo18(){}<nl><nl><nl>
}
{
endColumn : 0
endLine : 3
executionContextId : <executionContextId>
hasSourceURL : false
hash : 37189768928f28958154be7f45f542e438020797
isLiveEdit : false
isModule : false
length : 21
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo19(){}<nl><nl><nl><nl>
}
{
endColumn : 0
endLine : 4
executionContextId : <executionContextId>
hasSourceURL : false
hash : 1886d59067d0c92d8154be7f45f542e438020797
isLiveEdit : false
isModule : false
length : 22
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo1(){}//# sourceURL=oneline.js<nl>
}
{
endColumn : 0
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 1912c266357e416d5e19323209ce6b851f2e0f2c
isLiveEdit : false
isModule : false
length : 42
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : oneline.js
}
scriptParsed
{
scriptSource : function foo2(){}//# sourceURL=oneline-without-nl.js
}
{
endColumn : 52
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : true
hash : 10f9f2639b93aaa6175107400af8e91f3b0f471b
isLiveEdit : false
isModule : false
length : 52
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : oneline-without-nl.js
}
scriptParsed
{
scriptSource : function foo3(){}<nl>//# sourceURL=twoline.js<nl>
}
{
endColumn : 0
endLine : 2
executionContextId : <executionContextId>
hasSourceURL : true
hash : 0f8af679a498b4814efa01b934ce49ca06bf4ee7
isLiveEdit : false
isModule : false
length : 43
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : twoline.js
}
scriptParsed
{
scriptSource : function foo4(){}<nl><nl>//# sourceURL=threeline.js<nl>
}
{
endColumn : 0
endLine : 3
executionContextId : <executionContextId>
hasSourceURL : true
hash : 2cc1f4f316e466c0110dc50790dd520e45de6763
isLiveEdit : false
isModule : false
length : 46
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : threeline.js
}
scriptParsed
{
scriptSource : function foo5(){}//# sourceMappingURL=oneline-map<nl>
}
{
endColumn : 0
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : false
hash : 127829554266b55666f9cf02c2c7a05463c8c723
isLiveEdit : false
isModule : false
length : 50
scriptId : <scriptId>
sourceMapURL : oneline-map
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo6(){}//# sourceMappingURL=oneline-without-nl-map
}
{
endColumn : 60
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : false
hash : 1385e0fc24082a91521585943bfcce52262a7f4b
isLiveEdit : false
isModule : false
length : 60
scriptId : <scriptId>
sourceMapURL : oneline-without-nl-map
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo7(){}<nl>//# sourceMappingURL=twoline-map<nl>
}
{
endColumn : 0
endLine : 2
executionContextId : <executionContextId>
hasSourceURL : false
hash : 2b15af1d4127ae68644e0ce4443021185dbe2d2f
isLiveEdit : false
isModule : false
length : 51
scriptId : <scriptId>
sourceMapURL : twoline-map
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo8(){}<nl><nl>//# sourceMappingURL=threeline-map<nl>
}
{
endColumn : 0
endLine : 3
executionContextId : <executionContextId>
hasSourceURL : false
hash : 0036aba78093d0cf2ee6350c84b06ffe53aff63e
isLiveEdit : false
isModule : false
length : 54
scriptId : <scriptId>
sourceMapURL : threeline-map
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo9(){}//# sourceMappingURL=source-mapping-url-map<nl>//# sourceURL=source-url.js
}
{
endColumn : 27
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 374ed6be308871fa14f434e504168cba446836db
isLiveEdit : false
isModule : false
length : 88
scriptId : <scriptId>
sourceMapURL : source-mapping-url-map
startColumn : 0
startLine : 0
url : source-url.js
}
scriptParsed
{
scriptSource : function foo10(){}//# sourceURL=source-url.js<nl>//# sourceMappingURL=source-mapping-url-map
}
{
endColumn : 43
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 0db017360f0b77f12660e00ca287b54b602a6795
isLiveEdit : false
isModule : false
length : 89
scriptId : <scriptId>
sourceMapURL : source-mapping-url-map
startColumn : 0
startLine : 0
url : source-url.js
}
scriptParsed
{
scriptSource : function foo11(){}<nl>//# sourceURL=end1.js
}
{
endColumn : 21
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 096615cf17450c8153564f8c77c9b0421927e011
isLiveEdit : false
isModule : false
length : 40
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : end1.js
}
scriptParsed
{
scriptSource : function foo12(){}<nl>//# sourceURL=end2.js
}
{
endColumn : 22
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 1314f0ef0397feb553564f8c405d35f91927e011
isLiveEdit : false
isModule : false
length : 41
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : end2.js
}
scriptParsed
{
scriptSource : function foo13(){}
}
{
endColumn : 18
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : false
hash : 033b33d18f0514168154be7f45f542e4811403e2
isLiveEdit : false
isModule : false
length : 18
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo15(){}; eval("function foo14(){}//# sourceURL=eval.js")//# sourceURL=eval-wrapper.js
}
{
endColumn : 96
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : true
hash : 01fcc474486991b12de451e963f458f0767397c8
isLiveEdit : false
isModule : false
length : 96
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url : eval-wrapper.js
}
scriptParsed
{
scriptSource : function foo14(){}//# sourceURL=eval.js
}
{
endColumn : 39
endLine : 0
executionContextId : <executionContextId>
hasSourceURL : true
hash : 06c3a0dd6160579b49d51af109a969910e2e33fd
isLiveEdit : false
isModule : false
length : 39
scriptId : <scriptId>
sourceMapURL :
stackTrace : {
callFrames : [
[0] : {
columnNumber : 20
functionName :
lineNumber : 0
scriptId : <scriptId>
url : eval-wrapper.js
}
]
}
startColumn : 0
startLine : 0
url : eval.js
}
scriptFailedToParse
{
scriptSource : }//# sourceURL=failed.js<nl>//# sourceMappingURL=failed-map
}
{
endColumn : 31
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 01ee31bb2ab335516427f7ff73ddc9d476adbab4
isModule : false
length : 56
scriptId : <scriptId>
sourceMapURL : failed-map
startColumn : 0
startLine : 0
url : failed.js
}
Reland "inspector: find magic comment using V8 scanner" This is a reland of 1b3b808a5452cb53512b3e76505533c61e020b98 Original change's description: > inspector: find magic comment using V8 scanner > > Inspector tries to provide sourceURL and sourceMappingURL for scripts > with parser errors. Without this CL we convert source of each script > to inspector string and search for magic comment there. Some web sites > use pattern when they get some data from network and constantly try to > parse this data as JSON, in this case we do a lot of useless work. > > So we can parse magic comments on V8 side only for compilation errors > (excluding parse JSON errors), to do it we can reuse scanner by running > it on each potential comment. > > R=alph@chromium.org,verwaest@chromium.org,yangguo@chromium.org > > Bug: chromium:873865,v8:7731 > Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel > Change-Id: I77c270fd0e95cd7b2c9ee4b7f72ef344bc1fa104 > Reviewed-on: https://chromium-review.googlesource.com/1182446 > Reviewed-by: Toon Verwaest <verwaest@chromium.org> > Reviewed-by: Alexei Filippov <alph@chromium.org> > Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> > Cr-Commit-Position: refs/heads/master@{#55280} TBR=alph@chromium.org,verwaest@chromium.org,yangguo@chromium.org Bug: chromium:873865, v8:7731 Change-Id: I097678fda0ebdcbd35a85be0bb6cf0fcb052bcbd Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel Reviewed-on: https://chromium-review.googlesource.com/1195533 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Cr-Commit-Position: refs/heads/master@{#55507}
2018-08-21 14:30:47 +00:00
scriptFailedToParse
{
scriptSource : {a:2://# sourceURL=failed.js<nl>//# sourceMappingURL=failed-map
}
{
endColumn : 31
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : true
hash : 370d368557b75a8e281e4a84625a9e0263647da6
isModule : false
length : 60
scriptId : <scriptId>
sourceMapURL : failed-map
startColumn : 0
startLine : 0
url : failed.js
}
scriptParsed
{
scriptSource : function foo16(){}<nl>
}
{
endColumn : 0
endLine : 1
executionContextId : <executionContextId>
hasSourceURL : false
hash : 033b33d125db477a8154be7f45f542e4518bf49c
isLiveEdit : false
isModule : false
length : 19
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo17(){}<nl><nl>
}
{
endColumn : 0
endLine : 2
executionContextId : <executionContextId>
hasSourceURL : false
hash : 033b33d1122e39ae8154be7f45f542e438020797
isLiveEdit : false
isModule : false
length : 20
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo18(){}<nl><nl><nl>
}
{
endColumn : 0
endLine : 3
executionContextId : <executionContextId>
hasSourceURL : false
hash : 37189768928f28958154be7f45f542e438020797
isLiveEdit : false
isModule : false
length : 21
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url :
}
scriptParsed
{
scriptSource : function foo19(){}<nl><nl><nl><nl>
}
{
endColumn : 0
endLine : 4
executionContextId : <executionContextId>
hasSourceURL : false
hash : 1886d59067d0c92d8154be7f45f542e438020797
isLiveEdit : false
isModule : false
length : 22
scriptId : <scriptId>
sourceMapURL :
startColumn : 0
startLine : 0
url :
}
Remove script references and re-enable debugger.