Skip to content

Instantly share code, notes, and snippets.

@bmeck
Created May 19, 2014 04:25
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 bmeck/5b3f28d50789336049f3 to your computer and use it in GitHub Desktop.
Save bmeck/5b3f28d50789336049f3 to your computer and use it in GitHub Desktop.
node_debugger* debugger = (node_debugger*)stream->data;
debugger->isolate->Enter();
HandleScope scope;
Local<String> parseSrc = String::New("(function parse(str) {return JSON.parse(str)})");
Local<String> srcSrc = String::New("no.js");
Local<Script> scr = Script::Compile(parseSrc, srcSrc);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment