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

Side by Side Diff: Source/bindings/v8/Dictionary.cpp

Issue 111373003: Migrate bindings constructors to the new ExceptionState model. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh. Created 7 years 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 * 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 } 774 }
775 775
776 Dictionary::ConversionContext& Dictionary::ConversionContext::withAttributes(boo l isNullable) 776 Dictionary::ConversionContext& Dictionary::ConversionContext::withAttributes(boo l isNullable)
777 { 777 {
778 return withAttributes(isNullable, NormalConversion, ""); 778 return withAttributes(isNullable, NormalConversion, "");
779 } 779 }
780 780
781 void Dictionary::ConversionContext::throwTypeError(const String& detail) 781 void Dictionary::ConversionContext::throwTypeError(const String& detail)
782 { 782 {
783 if (forConstructor()) { 783 if (forConstructor()) {
784 exceptionState().throwTypeError(ExceptionMessages::failedToConstruct(int erfaceName(), detail)); 784 exceptionState().throwTypeError(detail);
785 } else { 785 } else {
786 ASSERT(!methodName().isEmpty()); 786 ASSERT(!methodName().isEmpty());
787 exceptionState().throwTypeError(ExceptionMessages::failedToExecute(inter faceName(), methodName(), detail)); 787 exceptionState().throwTypeError(ExceptionMessages::failedToExecute(inter faceName(), methodName(), detail));
788 } 788 }
789 } 789 }
790 790
791 } // namespace WebCore 791 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp ('k') | Source/bindings/v8/custom/V8BlobCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698