2014-04-18 09:18:50 +00:00
|
|
|
// Copyright (c) 2014 GitHub, Inc. All rights reserved.
|
2014-04-25 09:49:37 +00:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2014-04-18 09:18:50 +00:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "atom/common/browser_v8_locker.h"
|
|
|
|
|
|
|
|
namespace node {
|
|
|
|
extern bool g_standalone_mode;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
BrowserV8Locker::BrowserV8Locker(v8::Isolate* isolate) {
|
|
|
|
if (node::g_standalone_mode)
|
|
|
|
locker_.reset(new v8::Locker(isolate));
|
|
|
|
}
|
|
|
|
|
|
|
|
BrowserV8Locker::~BrowserV8Locker() {
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace atom
|