Skip to content

Instantly share code, notes, and snippets.

@caitp
Created March 9, 2015 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caitp/444ab494e6425b847824 to your computer and use it in GitHub Desktop.
Save caitp/444ab494e6425b847824 to your computer and use it in GitHub Desktop.
Backtracking by a single token in V8
+ -> current
<prev> <current> <next>
+
next -> return current without scanning
prev -> assert failure
current -> returns prev
+
next -> scan and return current
prev -> set mode to prev, and return prev
current -> returns current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment