blob: 43c624074833678b18988cfa9cbd678844aded66 [file] [log] [blame]
Avi Drissman468e51b62022-09-13 20:47:011// Copyright 2013 The Chromium Authors
abarth@chromium.orga22998a2013-11-10 05:00:502// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "gin/runner.h"
6
abarth@chromium.orga22998a2013-11-10 05:00:507namespace gin {
8
Jeremy Roman7c5cfabd2019-08-12 15:45:279Runner::Runner() {}
abarth@chromium.orga22998a2013-11-10 05:00:5010
Chris Watkins756035a2017-12-01 03:03:2711Runner::~Runner() = default;
abarth@chromium.org97f21ca2013-11-17 17:46:0712
abarth@chromium.orga22998a2013-11-10 05:00:5013Runner::Scope::Scope(Runner* runner)
sky@chromium.org1771610d2014-02-27 06:08:2414 : isolate_scope_(runner->GetContextHolder()->isolate()),
15 handle_scope_(runner->GetContextHolder()->isolate()),
16 scope_(runner->GetContextHolder()->context()) {
abarth@chromium.orga22998a2013-11-10 05:00:5017}
18
Chris Watkins756035a2017-12-01 03:03:2719Runner::Scope::~Scope() = default;
abarth@chromium.orga22998a2013-11-10 05:00:5020
21} // namespace gin