mirror of https://github.com/nodejs/node.git
35 lines
2.6 KiB
JavaScript
35 lines
2.6 KiB
JavaScript
var Foo = /** @class */ (function () {
|
|
function Foo(x) {
|
|
if (x === void 0) { x = 33; }
|
|
this.x = x ? x : 99;
|
|
if (this.x) {
|
|
this.methodA();
|
|
}
|
|
else {
|
|
this.methodB();
|
|
}
|
|
this.methodC();
|
|
}
|
|
Foo.prototype.methodA = function () {
|
|
};
|
|
Foo.prototype.methodB = function () {
|
|
};
|
|
Foo.prototype.methodC = function () {
|
|
};
|
|
Foo.prototype.methodD = function () {
|
|
};
|
|
return Foo;
|
|
}());
|
|
var a = new Foo(0);
|
|
var b = new Foo(33);
|
|
a.methodD();
|
|
module.exports = {
|
|
a: a,
|
|
b: b,
|
|
Foo: Foo,
|
|
};
|
|
// To recreate:
|
|
//
|
|
// npx tsc --outDir test/fixtures/source-map --sourceMap --inlineSources test/fixtures/source-map/no-throw.ts
|
|
// cp test/fixtures/source-map/no-throw.ts test/fixtures/source-map/no-throw2.ts
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm8tdGhyb3cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJuby10aHJvdy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUVFLGFBQWEsQ0FBTTtRQUFOLGtCQUFBLEVBQUEsTUFBTTtRQUNqQixJQUFJLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUE7UUFDbkIsSUFBSSxJQUFJLENBQUMsQ0FBQyxFQUFFLENBQUM7WUFDWCxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUE7UUFDaEIsQ0FBQzthQUFNLENBQUM7WUFDTixJQUFJLENBQUMsT0FBTyxFQUFFLENBQUE7UUFDaEIsQ0FBQztRQUNELElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQTt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