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

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 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 1870
1871 ScriptState::Scope scope(scriptState); 1871 ScriptState::Scope scope(scriptState);
1872 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 1872 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
1873 1873
1874 v8::Handle<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value); 1874 v8::Handle<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value);
1875 v8::Handle<v8::Value> argv[] = { valueHandle }; 1875 v8::Handle<v8::Value> argv[] = { valueHandle };
1876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr iptState->context()->Global(), scriptState->isolate()); 1876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr iptState->context()->Global(), scriptState->isolate());
1877 v8::TryCatch block; 1877 v8::TryCatch block;
1878 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, "TestInterfaceImplementation", "shortMethodWithShortArgumentImplementedInPriv ateScript", holder, 1, argv); 1878 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, "TestInterfaceImplementation", "shortMethodWithShortArgumentImplementedInPriv ateScript", holder, 1, argv);
1879 if (block.HasCaught()) { 1879 if (block.HasCaught()) {
1880 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip tState->isolate(), exceptionState, block.Exception())) { 1880 if (!PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->i solate(), exceptionState, block)) {
1881 // FIXME: We should support more exceptions. 1881 // FIXME: We should support more exceptions.
1882 RELEASE_ASSERT_NOT_REACHED(); 1882 RELEASE_ASSERT_NOT_REACHED();
1883 } 1883 }
1884 block.ReThrow(); 1884 block.ReThrow();
1885 return false; 1885 return false;
1886 } 1886 }
1887 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false); 1887 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false);
1888 RELEASE_ASSERT(!exceptionState.hadException()); 1888 RELEASE_ASSERT(!exceptionState.hadException());
1889 *result = cppValue; 1889 *result = cppValue;
1890 return true; 1890 return true;
(...skipping 12 matching lines...) Expand all
1903 if (!scriptState->executionContext()) 1903 if (!scriptState->executionContext())
1904 return false; 1904 return false;
1905 1905
1906 ScriptState::Scope scope(scriptState); 1906 ScriptState::Scope scope(scriptState);
1907 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 1907 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
1908 1908
1909 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState ->isolate()); 1909 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState ->isolate());
1910 v8::TryCatch block; 1910 v8::TryCatch block;
1911 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s criptState, "TestInterfaceImplementation", "stringAttribute", holder); 1911 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s criptState, "TestInterfaceImplementation", "stringAttribute", holder);
1912 if (block.HasCaught()) { 1912 if (block.HasCaught()) {
1913 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip tState->isolate(), exceptionState, block.Exception())) { 1913 if (!PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->i solate(), exceptionState, block)) {
1914 // FIXME: We should support more exceptions. 1914 // FIXME: We should support more exceptions.
1915 RELEASE_ASSERT_NOT_REACHED(); 1915 RELEASE_ASSERT_NOT_REACHED();
1916 } 1916 }
1917 block.ReThrow(); 1917 block.ReThrow();
1918 return false; 1918 return false;
1919 } 1919 }
1920 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); 1920 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false);
1921 RELEASE_ASSERT(!exceptionState.hadException()); 1921 RELEASE_ASSERT(!exceptionState.hadException());
1922 *result = cppValue; 1922 *result = cppValue;
1923 return true; 1923 return true;
(...skipping 12 matching lines...) Expand all
1936 if (!scriptState->executionContext()) 1936 if (!scriptState->executionContext())
1937 return false; 1937 return false;
1938 1938
1939 ScriptState::Scope scope(scriptState); 1939 ScriptState::Scope scope(scriptState);
1940 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 1940 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
1941 1941
1942 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState ->isolate()); 1942 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut e", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState ->isolate());
1943 v8::TryCatch block; 1943 v8::TryCatch block;
1944 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestInterfaceImplem entation", "stringAttribute", holder, v8String(scriptState->isolate(), cppValue) ); 1944 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestInterfaceImplem entation", "stringAttribute", holder, v8String(scriptState->isolate(), cppValue) );
1945 if (block.HasCaught()) { 1945 if (block.HasCaught()) {
1946 if (!PrivateScriptRunner::throwDOMExceptionInPrivateScriptIfNeeded(scrip tState->isolate(), exceptionState, block.Exception())) { 1946 if (!PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->i solate(), exceptionState, block)) {
1947 // FIXME: We should support more exceptions. 1947 // FIXME: We should support more exceptions.
1948 RELEASE_ASSERT_NOT_REACHED(); 1948 RELEASE_ASSERT_NOT_REACHED();
1949 } 1949 }
1950 block.ReThrow(); 1950 block.ReThrow();
1951 return false; 1951 return false;
1952 } 1952 }
1953 return true; 1953 return true;
1954 } 1954 }
1955 1955
1956 } // namespace blink 1956 } // namespace blink
1957 #endif // ENABLE(CONDITION) 1957 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698