~marcustomlinson/v8-cpp/test-gc

« back to all changes in this revision

Viewing changes to v8runner/v8runner.cpp

  • Committer: Marcus Tomlinson
  • Date: 2015-07-08 09:29:21 UTC
  • Revision ID: marcus.tomlinson@canonical.com-20150708092921-i8sjb82198rc95fr
Cleaned up some memoery leaks and added valgrind.supp

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        return -1;
30
30
    }
31
31
 
32
 
    // Create a new isolate to run our script in.
33
 
    Isolate* isolate = Isolate::New();
34
 
 
35
32
    // Run script.
36
 
    v8cpp::run_script_file(isolate, argv[1]);
37
 
 
38
 
    // Clean up.
39
 
    isolate->Dispose();
 
33
    v8cpp::run_script_file(argv[1]);
40
34
 
41
35
    return 0;
42
36
}