| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |