File: test.cpp

package info (click to toggle)
r-cran-v8 6.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 436 kB
  • sloc: javascript: 980; cpp: 424; sh: 23; makefile: 8
file content (11 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#include <libplatform/libplatform.h>
#include <v8.h>
using namespace v8;

int main(){
#if (V8_MAJOR_VERSION * 100 + V8_MINOR_VERSION) >= 704
  std::unique_ptr<Platform> platform = platform::NewDefaultPlatform();
  V8::InitializePlatform(platform.get());
#endif
  V8::Initialize();
}