diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-11 21:27:14 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-11 21:27:14 -0700 |
commit | f937b0464b18aa98e46ef6cd37e973f468906e88 (patch) | |
tree | c13bd6fe38d833bff4cf3ccc4b77db8448ed877a /src | |
parent | c0b0c3f87bb5050860fb1248a3fae20f5e0aefa2 (diff) |
we only allow 1 exported variable from inline js; #1613
Diffstat (limited to 'src')
-rw-r--r-- | src/intertyper.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index c4f62ec4..082fd993 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -716,6 +716,7 @@ function intertyper(data, sidePass, baseLineNums) { item.intertype = 'value'; if (tokensLeft[0].text == 'sideeffect') tokensLeft.splice(0, 1); item.ident = tokensLeft[0].text.substr(1, tokensLeft[0].text.length-2) || ';'; // use ; for empty inline assembly + assert((item.tokens[5].text.match(/=/g) || []).length <= 1, 'we only support at most 1 exported variable from inline js: ' + item.ident); var i = 0; var params = [], args = []; splitTokenList(tokensLeft[3].item.tokens).map(function(element) { |