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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerError.cpp

Issue 2595543003: Rename toV8(...) function in Blink to ToV8(...). (Closed)
Patch Set: Rebasing... Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 case WebServiceWorkerError::ErrorTypeNotFound: 134 case WebServiceWorkerError::ErrorTypeNotFound:
135 case WebServiceWorkerError::ErrorTypeScriptEvaluateFailed: 135 case WebServiceWorkerError::ErrorTypeScriptEvaluateFailed:
136 // According to the spec, these errors during update should result in 136 // According to the spec, these errors during update should result in
137 // a TypeError. 137 // a TypeError.
138 return V8ThrowException::createTypeError( 138 return V8ThrowException::createTypeError(
139 scriptState->isolate(), getExceptionParams(webError).message); 139 scriptState->isolate(), getExceptionParams(webError).message);
140 case WebServiceWorkerError::ErrorTypeType: 140 case WebServiceWorkerError::ErrorTypeType:
141 return V8ThrowException::createTypeError(scriptState->isolate(), 141 return V8ThrowException::createTypeError(scriptState->isolate(),
142 webError.message); 142 webError.message);
143 default: 143 default:
144 return toV8(ServiceWorkerError::take(resolver, webError), 144 return ToV8(ServiceWorkerError::take(resolver, webError),
145 scriptState->context()->Global(), scriptState->isolate()); 145 scriptState->context()->Global(), scriptState->isolate());
146 } 146 }
147 } 147 }
148 148
149 } // namespace blink 149 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698