forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathV8Context.cpp
More file actions
20 lines (15 loc) · 688 Bytes
/
V8Context.cpp
File metadata and controls
20 lines (15 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "ClearScriptV8Native.h"
//-----------------------------------------------------------------------------
// V8Context implementation
//-----------------------------------------------------------------------------
V8Context* V8Context::Create(const SharedPtr<V8Isolate>& spIsolate, const StdString& name, const Options& options)
{
return new V8ContextImpl(spIsolate.CastTo<V8IsolateImpl>(), name, options);
}
//-----------------------------------------------------------------------------
size_t V8Context::GetInstanceCount()
{
return V8ContextImpl::GetInstanceCount();
}