| OLD | NEW |
| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 32 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 #if ENABLE(ASSERT) | 36 #if ENABLE(ASSERT) |
| 37 | 37 |
| 38 NoExceptionStateAssertionChecker::NoExceptionStateAssertionChecker(const char* f
ile, int line) | 38 NoExceptionStateAssertionChecker::NoExceptionStateAssertionChecker(const char* f
ile, int line) |
| 39 : ExceptionState(ExceptionState::UnknownContext, 0, 0, v8::Handle<v8::Object
>(), 0) | 39 : ExceptionState(ExceptionState::UnknownContext, 0, 0, v8::Local<v8::Object>
(), 0) |
| 40 , m_file(file) | 40 , m_file(file) |
| 41 , m_line(line) { } | 41 , m_line(line) { } |
| 42 | 42 |
| 43 void NoExceptionStateAssertionChecker::throwDOMException(const ExceptionCode&, c
onst String&) | 43 void NoExceptionStateAssertionChecker::throwDOMException(const ExceptionCode&, c
onst String&) |
| 44 { | 44 { |
| 45 ASSERT_AT(false, m_file, m_line, ""); | 45 ASSERT_AT(false, m_file, m_line, ""); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void NoExceptionStateAssertionChecker::throwTypeError(const String&) | 48 void NoExceptionStateAssertionChecker::throwTypeError(const String&) |
| 49 { | 49 { |
| 50 ASSERT_AT(false, m_file, m_line, ""); | 50 ASSERT_AT(false, m_file, m_line, ""); |
| 51 } | 51 } |
| 52 | 52 |
| 53 void NoExceptionStateAssertionChecker::throwSecurityError(const String&, const S
tring&) | 53 void NoExceptionStateAssertionChecker::throwSecurityError(const String&, const S
tring&) |
| 54 { | 54 { |
| 55 ASSERT_AT(false, m_file, m_line, ""); | 55 ASSERT_AT(false, m_file, m_line, ""); |
| 56 } | 56 } |
| 57 | 57 |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 } // namespace blink | 60 } // namespace blink |
| OLD | NEW |