Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octal escape sequences are not allowed in strict mode #107

Open
abelmokadem opened this issue Jun 14, 2018 · 0 comments
Open

Octal escape sequences are not allowed in strict mode #107

abelmokadem opened this issue Jun 14, 2018 · 0 comments

Comments

@abelmokadem
Copy link

abelmokadem commented Jun 14, 2018

Found a bug that occurs when the snapshot contains octal escape sequences.

  • version: 5.0.1
  • platform: OS X 10.12.6
  • expected behavior: snapshot should be imported
  • actual behavior: library errors out due to octal escape sequence
evalmachine.<anonymous>:51
    <entry seq="2">Set key \REGISTRY\USER\S-1-5-21-2052111302-1214440339-682003330-500\Software\Microsoft\Office\12.0\Excel\Resiliency\StartupItems\2v$ to value NULL</entry>


SyntaxError: Octal escape sequences are not allowed in strict mode.
    at new Script (vm.js:74:7)
    at createScript (vm.js:246:10)
    at Object.runInNewContext (vm.js:291:10)
    at loadSnaps (/Users/ash/Projects/aegon/apidas/wildfire-client/node_modules/snap-shot-core/src/file-system.js:31:8)
    at Object.loadSnapshots (/Users/ash/Projects/aegon/apidas/wildfire-client/node_modules/snap-shot-core/src/file-system.js:64:17)
    at Object.keys.forEach.file (/Users/ash/Projects/aegon/apidas/wildfire-client/node_modules/snap-shot-core/src/index.js:144:26)
    at Array.forEach (<anonymous>)
    at Function.pruneSnapshots [as prune] (/Users/ash/Projects/aegon/apidas/wildfire-client/node_modules/snap-shot-core/src/index.js:142:27)
    at Context._pruneSnapshots (/Users/ash/Projects/aegon/apidas/wildfire-client/node_modules/snap-shot-it/src/index.js:19:8)
    at Context.<anonymous> (/Users/ash/Projects/aegon/apidas/wildfire-client/node_modules/snap-shot-it/src/index.js:143:20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant