Advertisement
tarruda

minimal haskell-v8 crash

Nov 19th, 2013
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <cstring>
  2. #include <cstdlib>
  3. #include <v8.h>
  4.  
  5. using namespace v8;
  6.  
  7.  
  8. extern "C" {
  9. char * hello() {
  10.   // Get the default Isolate created at startup.
  11.   Isolate* isolate = Isolate::GetCurrent();
  12.  
  13.   // Create a stack-allocated handle scope.
  14.   HandleScope handle_scope(isolate);
  15.  
  16.   return "Hello, World!";
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement