mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-03-10 14:06:53 -04:00
14 lines
240 B
C++
14 lines
240 B
C++
![]() |
#include "third_party/v8/include/v8.h"
|
||
|
|
||
|
using namespace v8;
|
||
|
|
||
|
extern "C" {
|
||
|
Isolate* v8__Isolate__New() {
|
||
|
Isolate::CreateParams params;
|
||
|
return Isolate::New(params);
|
||
|
}
|
||
|
|
||
|
void v8__Isolate__Dispose(Isolate& isolate) {
|
||
|
isolate.Dispose();
|
||
|
}
|
||
|
}
|