data_object_builder.cc 467 B

12345678910111213141516
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "gin/data_object_builder.h"
  5. namespace gin {
  6. DataObjectBuilder::DataObjectBuilder(v8::Isolate* isolate)
  7. : isolate_(isolate),
  8. context_(isolate->GetCurrentContext()),
  9. object_(v8::Object::New(isolate)) {}
  10. DataObjectBuilder::~DataObjectBuilder() = default;
  11. } // namespace gin