| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "bindings/core/v8/V8ThrowDOMException.h" | 5 #include "bindings/core/v8/V8ThrowDOMException.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ToV8ForCore.h" | 7 #include "bindings/core/v8/ToV8ForCore.h" |
| 8 #include "bindings/core/v8/V8PrivateProperty.h" | |
| 9 #include "bindings/core/v8/V8ThrowException.h" | |
| 10 #include "core/dom/DOMException.h" | 8 #include "core/dom/DOMException.h" |
| 9 #include "platform/bindings/V8PrivateProperty.h" |
| 10 #include "platform/bindings/V8ThrowException.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 void DomExceptionStackGetter(v8::Local<v8::Name> name, | 16 void DomExceptionStackGetter(v8::Local<v8::Name> name, |
| 17 const v8::PropertyCallbackInfo<v8::Value>& info) { | 17 const v8::PropertyCallbackInfo<v8::Value>& info) { |
| 18 v8::Isolate* isolate = info.GetIsolate(); | 18 v8::Isolate* isolate = info.GetIsolate(); |
| 19 v8::Local<v8::Value> value; | 19 v8::Local<v8::Value> value; |
| 20 if (info.Data() | 20 if (info.Data() |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const String& sanitized_message, | 85 const String& sanitized_message, |
| 86 const String& unsanitized_message) { | 86 const String& unsanitized_message) { |
| 87 v8::Local<v8::Value> dom_exception = CreateDOMException( | 87 v8::Local<v8::Value> dom_exception = CreateDOMException( |
| 88 isolate, exception_code, sanitized_message, unsanitized_message); | 88 isolate, exception_code, sanitized_message, unsanitized_message); |
| 89 if (dom_exception.IsEmpty()) | 89 if (dom_exception.IsEmpty()) |
| 90 return; | 90 return; |
| 91 V8ThrowException::ThrowException(isolate, dom_exception); | 91 V8ThrowException::ThrowException(isolate, dom_exception); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| OLD | NEW |