Skip to content

Commit ac6faad

Browse files
raskadnekevss
andauthored
Update blog/2024-10-01-local-variables.md
Co-authored-by: Kevin Ness <[email protected]>
1 parent 26f7f76 commit ac6faad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/2024-10-01-local-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ A typical ECMAScript engine uses a virtual machine (VM) to execute your code.
241241
VMs use dedicated memory for values they operate on; a stack or registers.
242242
For the purpose of this post, we use registers, but the stack would work in the same way.
243243
Let's try to use registers to store variables.
244-
While compiling the ECMAScript code into operations for our VM we assign each variable to a register.
244+
While compiling the ECMAScript code into operations for our VM, we assign each variable to a register.
245245
Then we modify our variable operations to use registers instead of scopes to access variables.
246246

247247
When we test our example from above, it works fine with these changes.

0 commit comments

Comments
 (0)