Skip to content

Commit 548d2b4

Browse files
committed
Remove a stray ;
1 parent 126c424 commit 548d2b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/blog/packer/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ and try to understand what each of its parts does:
210210
Finally, this is the _runtime_ of Packer. It takes the minified code (<code>"6 4(2){5 3=0;<wbr />7(5 1=0;1<2.8;++1)<wbr />3+=2[1];<wbr />9 3}<wbr />a.b(4(c,d,e))"</code>) and the list of keywords (<code>"|i<wbr />|arguments<wbr />|result<wbr />|sum<wbr />|var<wbr />|function<wbr />|for<wbr />|length<wbr />|return<wbr />|console<wbr />|log<wbr />|10<wbr />|20<wbr />|30"</code>) – and replaces each identifier in the first string with the corresponding keyword from the second string. Once it’s done, it returns the unminified code string:
211211
212212
```javascript{wordWrap: true}
213-
'function sum(arguments){var result = 0;for(var i=0;i<arguments.length;++i)result+=arguments[i];return result;}console.log(sum(10, 20, 30))';
213+
'function sum(arguments){var result = 0;for(var i=0;i<arguments.length;++i)result+=arguments[i];return result;}console.log(sum(10, 20, 30))'
214214
```
215215
216216
which is then passed into `eval()` and executed.

0 commit comments

Comments
 (0)