OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2015 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 #ifndef ScriptValueUtilities_h | |
6 #define ScriptValueUtilities_h | |
7 | |
8 #include "bindings/core/v8/ScriptValue.h" | |
9 #include "bindings/core/v8/ToV8.h" | |
10 #include "bindings/modules/v8/ToV8Utilities.h" | |
11 #include "modules/webdatabase/sqlite/SQLValue.h" | |
12 | |
13 namespace blink { | |
14 | |
15 ScriptValue toScriptValue(const Vector<std::pair<String, SQLValue>>& value) | |
16 { | |
17 v8::Isolate* isolate = v8::Isolate::GetCurrent(); | |
18 ScriptState* scriptState = ScriptState::current(isolate); | |
Jens Widell
2015/03/04 15:53:27
It would be better if this function just took a Sc
| |
19 RELEASE_ASSERT(scriptState); | |
20 return ScriptValue(scriptState, toV8(value, scriptState->context()->Global() , isolate)); | |
21 } | |
22 | |
23 } // namespace blink | |
24 | |
25 #endif // ScriptValueUtilities_h | |
OLD | NEW |