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

Side by Side Diff: Source/core/inspector/ScriptArguments.cpp

Issue 884753003: Fix template angle bracket syntax in inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some more fixes Created 5 years, 10 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
« no previous file with comments | « Source/core/inspector/PromiseTracker.cpp ('k') | Source/core/inspector/ScriptCallStack.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 Google Inc. All rights reserved. 2 * Copyright (c) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 String toString() 149 String toString()
150 { 150 {
151 if (m_tryCatch.HasCaught()) 151 if (m_tryCatch.HasCaught())
152 return String(); 152 return String();
153 return m_builder.toString(); 153 return m_builder.toString();
154 } 154 }
155 155
156 uint32_t m_arrayLimit; 156 uint32_t m_arrayLimit;
157 v8::Isolate* m_isolate; 157 v8::Isolate* m_isolate;
158 StringBuilder m_builder; 158 StringBuilder m_builder;
159 Vector<v8::Local<v8::Array> > m_visitedArrays; 159 Vector<v8::Local<v8::Array>> m_visitedArrays;
160 v8::TryCatch m_tryCatch; 160 v8::TryCatch m_tryCatch;
161 }; 161 };
162 162
163 } // namespace 163 } // namespace
164 164
165 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptArguments) 165 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptArguments)
166 166
167 PassRefPtrWillBeRawPtr<ScriptArguments> ScriptArguments::create(ScriptState* scr iptState, Vector<ScriptValue>& arguments) 167 PassRefPtrWillBeRawPtr<ScriptArguments> ScriptArguments::create(ScriptState* scr iptState, Vector<ScriptValue>& arguments)
168 { 168 {
169 return adoptRefWillBeNoop(new ScriptArguments(scriptState, arguments)); 169 return adoptRefWillBeNoop(new ScriptArguments(scriptState, arguments));
(...skipping 16 matching lines...) Expand all
186 if (!argumentCount()) 186 if (!argumentCount())
187 return false; 187 return false;
188 188
189 const ScriptValue& value = argumentAt(0); 189 const ScriptValue& value = argumentAt(0);
190 ScriptState::Scope scope(m_scriptState.get()); 190 ScriptState::Scope scope(m_scriptState.get());
191 result = V8ValueStringBuilder::toString(value.v8Value(), value.isolate()); 191 result = V8ValueStringBuilder::toString(value.v8Value(), value.isolate());
192 return true; 192 return true;
193 } 193 }
194 194
195 } // namespace blink 195 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/PromiseTracker.cpp ('k') | Source/core/inspector/ScriptCallStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698