mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Fix concatenation of JS modules.
Without a semicolon separator, it's possible that concatenated modules can be interpreted as valid JS expressions.
This commit is contained in:
committed by
Neil Williams
parent
df270a022a
commit
4a02f99c61
@@ -73,7 +73,7 @@ class Module(Source):
|
||||
self.sources.append(source)
|
||||
|
||||
def get_source(self):
|
||||
return "\n".join(s.get_source() for s in self.sources)
|
||||
return ";".join(s.get_source() for s in self.sources)
|
||||
|
||||
@property
|
||||
def path(self):
|
||||
|
||||
Reference in New Issue
Block a user