Skip to content

Commit e6b78a3

Browse files
authored
1 parent 2564354 commit e6b78a3

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

emscripten.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import logging
1919
import pprint
2020
import shutil
21-
from collections import OrderedDict
2221

2322
from tools import building
2423
from tools import diagnostics
@@ -771,7 +770,7 @@ def add_standard_wasm_imports(send_items_map):
771770

772771
def create_sending(invoke_funcs, metadata):
773772
# Map of wasm imports to mangled/external/JS names
774-
send_items_map = OrderedDict()
773+
send_items_map = {}
775774

776775
def add_send_items(name, mangled_name, ignore_dups=False):
777776
# Sanity check that the names of emJsFuncs, declares, and globalImports don't overlap

tools/wasm-sourcemap.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"""
1212

1313
import argparse
14-
from collections import OrderedDict
1514
import json
1615
import logging
1716
from math import floor, log
@@ -311,11 +310,11 @@ def build_sourcemap(entries, code_section_offset, prefixes, collect_sources, bas
311310
last_source_id = source_id
312311
last_line = line
313312
last_column = column
314-
return OrderedDict([('version', 3),
315-
('names', []),
316-
('sources', sources),
317-
('sourcesContent', sources_content),
318-
('mappings', ','.join(mappings))])
313+
return {'version': 3,
314+
'names': [],
315+
'sources': sources,
316+
'sourcesContent': sources_content,
317+
'mappings': ','.join(mappings)}
319318

320319

321320
def main():

0 commit comments

Comments
 (0)