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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp

Issue 284163002: Better arity checks for overloads (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Return properly Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceConstructor2.h" 8 #include "V8TestInterfaceConstructor2.h"
9 9
10 #include "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 TestInterfaceConstructor2V8Internal::constructor3(info); 138 TestInterfaceConstructor2V8Internal::constructor3(info);
139 return; 139 return;
140 } 140 }
141 break; 141 break;
142 case 6: 142 case 6:
143 if (true) { 143 if (true) {
144 TestInterfaceConstructor2V8Internal::constructor3(info); 144 TestInterfaceConstructor2V8Internal::constructor3(info);
145 return; 145 return;
146 } 146 }
147 break; 147 break;
148 } 148 default:
149 if (UNLIKELY(info.Length() < 1)) {
150 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 149 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
151 exceptionState.throwIfNeeded(); 150 exceptionState.throwIfNeeded();
152 return; 151 return;
153 } 152 }
154 exceptionState.throwTypeError("No matching constructor signature."); 153 exceptionState.throwTypeError("No matching constructor signature.");
155 exceptionState.throwIfNeeded(); 154 exceptionState.throwIfNeeded();
156 } 155 }
157 156
158 } // namespace TestInterfaceConstructor2V8Internal 157 } // namespace TestInterfaceConstructor2V8Internal
159 158
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 fromInternalPointer(object)->deref(); 245 fromInternalPointer(object)->deref();
247 } 246 }
248 247
249 template<> 248 template<>
250 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 249 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
251 { 250 {
252 return toV8(impl, creationContext, isolate); 251 return toV8(impl, creationContext, isolate);
253 } 252 }
254 253
255 } // namespace WebCore 254 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698