Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions emsymbolizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# If there is a name section or symbol table, llvm-nm can show the symbol name.

import argparse
from collections import namedtuple
import json
import os
import re
Expand Down Expand Up @@ -89,8 +88,12 @@ def get_sourceMappingURL_section(module):


class WasmSourceMap(object):
# This implementation is derived from emscripten's sourcemap-support.js
Location = namedtuple('Location', ['source', 'line', 'column'])
class Location(object):
def __init__(self, source=None, line=0, column=0, func=None):
self.source = source
self.line = line
self.column = column
self.func = func

def __init__(self):
self.version = None
Expand Down