OLD | NEW |
---|---|
(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()), | |
Devlin
2017/04/26 15:50:31
Would it be better to pass in the context and get
jbroman
2017/04/26 17:47:31
It's a bit of a lie because v8::Object::New alread
Devlin
2017/04/26 18:30:23
Ah, good point. This is fine.
On that note, naiv
| |
12 object_(v8::Object::New(isolate)) {} | |
13 | |
14 } // namespace gin | |
OLD | NEW |