Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Side by Side Diff: gin/data_object_builder.cc

Issue 2845463002: gin: Create a DataObjectBuilder class to help create simple data objects. (Closed)
Patch Set: devlin Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
5 #include "gin/data_object_builder.h"
6
7 namespace gin {
8
9 DataObjectBuilder::DataObjectBuilder(v8::Isolate* isolate)
10 : isolate_(isolate),
11 context_(isolate->GetCurrentContext()),
12 object_(v8::Object::New(isolate)) {}
13
14 } // namespace gin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698