Skip to content

Commit a3d8827

Browse files
committed
Use const declaration (#40)
1 parent ece0798 commit a3d8827

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/sourcemap/SourceMapper.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export class WatMapper implements SourceMapper {
3232
let functions: Closure[];
3333
let globals: Variable[];
3434
let imports: Closure[];
35-
let sourceMap: Mapping;
3635

3736
function handleObjDumpStreams(error: ExecException | null, stdout: string, stderr: string) {
3837
if (stderr.match('wasm-objdump')) {
@@ -52,7 +51,7 @@ export class WatMapper implements SourceMapper {
5251

5352
const objDump = exec(this.getNameDumpCommand(), handleObjDumpStreams);
5453

55-
sourceMap = new SourceMap.Mapping().init(this.lineMapping, [], [], []);
54+
const sourceMap = new SourceMap.Mapping().init(this.lineMapping, [], [], []);
5655
objDump.on('close', () => {
5756
sourceMap.functions = functions;
5857
sourceMap.globals = globals;

0 commit comments

Comments
 (0)