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

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

Issue 23440058: Improve generated TypeError exception messages in bindings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 128
129 static const V8DOMConfiguration::MethodConfiguration V8Float64ArrayMethods[] = { 129 static const V8DOMConfiguration::MethodConfiguration V8Float64ArrayMethods[] = {
130 {"set", Float64ArrayV8Internal::setMethodCallback, 0, 0}, 130 {"set", Float64ArrayV8Internal::setMethodCallback, 0, 0},
131 }; 131 };
132 132
133 void V8Float64Array::constructorCallback(const v8::FunctionCallbackInfo<v8::Valu e>& args) 133 void V8Float64Array::constructorCallback(const v8::FunctionCallbackInfo<v8::Valu e>& args)
134 { 134 {
135 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); 135 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor");
136 if (!args.IsConstructCall()) { 136 if (!args.IsConstructCall()) {
137 throwTypeError("DOM object constructor cannot be called as a function.", args.GetIsolate()); 137 throwTypeError(ExceptionMessages::failedToConstruct("Float64Array", "Ple ase use the 'new' operator, this DOM object constructor cannot be called as a fu nction."), args.GetIsolate());
138 return; 138 return;
139 } 139 }
140 140
141 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { 141 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) {
142 args.GetReturnValue().Set(args.Holder()); 142 args.GetReturnValue().Set(args.Holder());
143 return; 143 return;
144 } 144 }
145 145
146 Float64ArrayV8Internal::constructor(args); 146 Float64ArrayV8Internal::constructor(args);
147 } 147 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &info, wrappe r, isolate, WrapperConfiguration::Independent); 224 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &info, wrappe r, isolate, WrapperConfiguration::Independent);
225 return wrapper; 225 return wrapper;
226 } 226 }
227 227
228 void V8Float64Array::derefObject(void* object) 228 void V8Float64Array::derefObject(void* object)
229 { 229 {
230 fromInternalPointer(object)->deref(); 230 fromInternalPointer(object)->deref();
231 } 231 }
232 232
233 } // namespace WebCore 233 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/bindings/tests/results/V8TestEventConstructor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698