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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.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 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 #endif // ENABLE(Condition11) || ENABLE(Condition12) 1072 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1073 #if ENABLE(Condition11) || ENABLE(Condition12) 1073 #if ENABLE(Condition11) || ENABLE(Condition12)
1074 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa llback, 0, 0}, 1074 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa llback, 0, 0},
1075 #endif // ENABLE(Condition11) || ENABLE(Condition12) 1075 #endif // ENABLE(Condition11) || ENABLE(Condition12)
1076 }; 1076 };
1077 1077
1078 void V8TestInterface::constructorCallback(const v8::FunctionCallbackInfo<v8::Val ue>& args) 1078 void V8TestInterface::constructorCallback(const v8::FunctionCallbackInfo<v8::Val ue>& args)
1079 { 1079 {
1080 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); 1080 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor");
1081 if (!args.IsConstructCall()) { 1081 if (!args.IsConstructCall()) {
1082 throwTypeError("DOM object constructor cannot be called as a function.", args.GetIsolate()); 1082 throwTypeError(ExceptionMessages::failedToConstruct("TestInterface", "Pl ease use the 'new' operator, this DOM object constructor cannot be called as a f unction."), args.GetIsolate());
1083 return; 1083 return;
1084 } 1084 }
1085 1085
1086 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { 1086 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) {
1087 args.GetReturnValue().Set(args.Holder()); 1087 args.GetReturnValue().Set(args.Holder());
1088 return; 1088 return;
1089 } 1089 }
1090 1090
1091 TestInterfaceV8Internal::constructor(args); 1091 TestInterfaceV8Internal::constructor(args);
1092 } 1092 }
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 } 1254 }
1255 1255
1256 void V8TestInterface::derefObject(void* object) 1256 void V8TestInterface::derefObject(void* object)
1257 { 1257 {
1258 fromInternalPointer(object)->deref(); 1258 fromInternalPointer(object)->deref();
1259 } 1259 }
1260 1260
1261 } // namespace WebCore 1261 } // namespace WebCore
1262 1262
1263 #endif // ENABLE(Condition1) || ENABLE(Condition2) 1263 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestExtendedEvent.cpp ('k') | Source/bindings/tests/results/V8TestNamedConstructor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698