summaryrefslogtreecommitdiffstats
path: root/chromium/gin/data_object_builder.cc
blob: bf76209ba0e87472549966e5cc6436562269fe41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "gin/data_object_builder.h"

namespace gin {

DataObjectBuilder::DataObjectBuilder(v8::Isolate* isolate)
    : isolate_(isolate),
      context_(isolate->GetCurrentContext()),
      object_(v8::Object::New(isolate)) {}

DataObjectBuilder::~DataObjectBuilder() = default;

}  // namespace gin