Chromium Code Reviews

Unified Diff: Source/bindings/modules/v8/V8BindingForModules.cpp

Issue 966843002: Mark DOMStringList.contains() as deprecated, add console warning. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add more detailed use counters Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « LayoutTests/storage/indexeddb/version-change-abort-expected.txt ('k') | Source/core/dom/DOMStringList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/modules/v8/V8BindingForModules.cpp
diff --git a/Source/bindings/modules/v8/V8BindingForModules.cpp b/Source/bindings/modules/v8/V8BindingForModules.cpp
index a7740e496db1325c67fd45b0d5699eda8500167d..d0eae41bc1f4adb1d3277fb4583764abc65605ab 100644
--- a/Source/bindings/modules/v8/V8BindingForModules.cpp
+++ b/Source/bindings/modules/v8/V8BindingForModules.cpp
@@ -69,7 +69,7 @@ v8::Local<v8::Value> toV8(const IDBKeyPath& value, v8::Local<v8::Object> creatio
case IDBKeyPath::StringType:
return v8String(isolate, value.string());
case IDBKeyPath::ArrayType:
- RefPtrWillBeRawPtr<DOMStringList> keyPaths = DOMStringList::create();
+ RefPtrWillBeRawPtr<DOMStringList> keyPaths = DOMStringList::create(DOMStringList::IndexedDB);
jsbell 2015/06/12 20:35:38 Side note: I'm rather surprised to see this here.
for (Vector<String>::const_iterator it = value.array().begin(); it != value.array().end(); ++it)
keyPaths->append(*it);
return toV8(keyPaths.release(), creationContext, isolate);
« no previous file with comments | « LayoutTests/storage/indexeddb/version-change-abort-expected.txt ('k') | Source/core/dom/DOMStringList.h » ('j') | no next file with comments »

Powered by Google App Engine