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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.cpp

Issue 460573002: JS errors thrown in private scripts should be reported to stderr in Debug builds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 if (!scriptState->executionContext()) 1659 if (!scriptState->executionContext())
1660 return false; 1660 return false;
1661 1661
1662 ScriptState::Scope scope(scriptState); 1662 ScriptState::Scope scope(scriptState);
1663 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 1663 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
1664 1664
1665 v8::Handle<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value); 1665 v8::Handle<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value);
1666 v8::Handle<v8::Value> argv[] = { valueHandle }; 1666 v8::Handle<v8::Value> argv[] = { valueHandle };
1667 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr iptState->context()->Global(), scriptState->isolate()); 1667 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr iptState->context()->Global(), scriptState->isolate());
1668 v8::TryCatch block; 1668 v8::TryCatch block;
1669 #ifndef NDEBUG
1670 block.SetVerbose(true);
1671 #endif
1669 V8RethrowTryCatchScope rethrow(block); 1672 V8RethrowTryCatchScope rethrow(block);
1670 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, "TestInterfaceImplementation", "shortMethodWithShortArgumentImplementedInPriv ateScript", holder, 1, argv); 1673 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, "TestInterfaceImplementation", "shortMethodWithShortArgumentImplementedInPriv ateScript", holder, 1, argv);
1671 if (block.HasCaught()) { 1674 if (block.HasCaught()) {
1672 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip tState->isolate(), exceptionState, block.Exception())) { 1675 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip tState->isolate(), exceptionState, block.Exception())) {
1673 // FIXME: We should support exceptions other than DOM exceptions. 1676 // FIXME: We should support exceptions other than DOM exceptions.
1674 RELEASE_ASSERT_NOT_REACHED(); 1677 RELEASE_ASSERT_NOT_REACHED();
1675 } 1678 }
1676 return false; 1679 return false;
1677 } 1680 }
1678 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false); 1681 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false);
(...skipping 13 matching lines...) Expand all
1692 return false; 1695 return false;
1693 ScriptState* scriptState = ScriptState::from(context); 1696 ScriptState* scriptState = ScriptState::from(context);
1694 if (!scriptState->executionContext()) 1697 if (!scriptState->executionContext())
1695 return false; 1698 return false;
1696 1699
1697 ScriptState::Scope scope(scriptState); 1700 ScriptState::Scope scope(scriptState);
1698 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 1701 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
1699 1702
1700 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState ->isolate()); 1703 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState ->isolate());
1701 v8::TryCatch block; 1704 v8::TryCatch block;
1705 #ifndef NDEBUG
1706 block.SetVerbose(true);
1707 #endif
1702 V8RethrowTryCatchScope rethrow(block); 1708 V8RethrowTryCatchScope rethrow(block);
1703 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s criptState, "TestInterfaceImplementation", "stringAttribute", holder); 1709 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s criptState, "TestInterfaceImplementation", "stringAttribute", holder);
1704 if (block.HasCaught()) { 1710 if (block.HasCaught()) {
1705 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip tState->isolate(), exceptionState, block.Exception())) { 1711 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip tState->isolate(), exceptionState, block.Exception())) {
1706 // FIXME: We should support exceptions other than DOM exceptions. 1712 // FIXME: We should support exceptions other than DOM exceptions.
1707 RELEASE_ASSERT_NOT_REACHED(); 1713 RELEASE_ASSERT_NOT_REACHED();
1708 } 1714 }
1709 return false; 1715 return false;
1710 } 1716 }
1711 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); 1717 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false);
(...skipping 13 matching lines...) Expand all
1725 return false; 1731 return false;
1726 ScriptState* scriptState = ScriptState::from(context); 1732 ScriptState* scriptState = ScriptState::from(context);
1727 if (!scriptState->executionContext()) 1733 if (!scriptState->executionContext())
1728 return false; 1734 return false;
1729 1735
1730 ScriptState::Scope scope(scriptState); 1736 ScriptState::Scope scope(scriptState);
1731 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 1737 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
1732 1738
1733 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState ->isolate()); 1739 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState ->isolate());
1734 v8::TryCatch block; 1740 v8::TryCatch block;
1741 #ifndef NDEBUG
1742 block.SetVerbose(true);
1743 #endif
1735 V8RethrowTryCatchScope rethrow(block); 1744 V8RethrowTryCatchScope rethrow(block);
1736 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestInterfaceImplem entation", "stringAttribute", holder, v8String(scriptState->isolate(), cppValue) ); 1745 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestInterfaceImplem entation", "stringAttribute", holder, v8String(scriptState->isolate(), cppValue) );
1737 if (block.HasCaught()) { 1746 if (block.HasCaught()) {
1738 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip tState->isolate(), exceptionState, block.Exception())) { 1747 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip tState->isolate(), exceptionState, block.Exception())) {
1739 // FIXME: We should support exceptions other than DOM exceptions. 1748 // FIXME: We should support exceptions other than DOM exceptions.
1740 RELEASE_ASSERT_NOT_REACHED(); 1749 RELEASE_ASSERT_NOT_REACHED();
1741 } 1750 }
1742 return false; 1751 return false;
1743 } 1752 }
1744 return true; 1753 return true;
1745 } 1754 }
1746 1755
1747 } // namespace blink 1756 } // namespace blink
1748 #endif // ENABLE(CONDITION) 1757 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698