-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
This works correctly, you cannot put a breakpoint on the comment:
function P() {
// Test this
var a = 1;
}
This is the sourcemap:
{"version":3,"file":"W.js","sourceRoot":"","sources":["W.ts"],"names":["P"],"mappings":"AAAA,SAAS,CAAC;IAETA,AADAA,YAAYA;QACRA,CAACA,GAAGA,CAACA,CAACA;AACXA,CAACA"}
While here you can put a breakpoint on the comment but cannot put on 'var a = 1' !
module Q {
function P() {
// Test this
var a = 1;
}
}
Sourcemap:
{"version":3,"file":"W.js","sourceRoot":"","sources":["W.ts"],"names":["Q","Q.P"],"mappings":"AAAA,IAAO,CAAC,CAKP;AALD,WAAO,CAAC,EAAC,CAAC;IACTA,SAASA,CAACA;QAETC,AADAA,YAAYA;YACRA,CAACA,GAAGA,CAACA,CAACA;IACXA,CAACA;AACFD,CAACA,EALM,CAAC,KAAD,CAAC,QAKP"}
Checked in Google Chrome.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue