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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp

Issue 2441593002: binding: Returns a reject promise when |this| is not of the type. (Closed)
Patch Set: Updated test expectations. Created 4 years, 1 month 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 // 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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // clang-format off 8 // clang-format off
9 #include "V8TestSpecialOperations.h" 9 #include "V8TestSpecialOperations.h"
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) { 162 void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) {
163 const AtomicString& propertyName = AtomicString::number(index); 163 const AtomicString& propertyName = AtomicString::number(index);
164 164
165 TestSpecialOperationsV8Internal::namedPropertySetter(propertyName, v8Value, in fo); 165 TestSpecialOperationsV8Internal::namedPropertySetter(propertyName, v8Value, in fo);
166 } 166 }
167 167
168 } // namespace TestSpecialOperationsV8Internal 168 } // namespace TestSpecialOperationsV8Internal
169 169
170 const V8DOMConfiguration::MethodConfiguration V8TestSpecialOperationsMethods[] = { 170 const V8DOMConfiguration::MethodConfiguration V8TestSpecialOperationsMethods[] = {
171 {"namedItem", TestSpecialOperationsV8Internal::namedItemMethodCallback, 0, 1 , v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto type}, 171 {"namedItem", TestSpecialOperationsV8Internal::namedItemMethodCallback, 0, 1 , v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto type, V8DOMConfiguration::CheckHolder},
172 }; 172 };
173 173
174 static void installV8TestSpecialOperationsTemplate(v8::Isolate* isolate, const D OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 174 static void installV8TestSpecialOperationsTemplate(v8::Isolate* isolate, const D OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
175 // Initialize the interface object's template. 175 // Initialize the interface object's template.
176 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestSpecialOperations::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionT emplate>(), V8TestSpecialOperations::internalFieldCount); 176 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestSpecialOperations::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionT emplate>(), V8TestSpecialOperations::internalFieldCount);
177 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 177 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
178 ALLOW_UNUSED_LOCAL(signature); 178 ALLOW_UNUSED_LOCAL(signature);
179 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 179 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
180 ALLOW_UNUSED_LOCAL(instanceTemplate); 180 ALLOW_UNUSED_LOCAL(instanceTemplate);
181 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 181 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
(...skipping 19 matching lines...) Expand all
201 201
202 v8::Local<v8::Object> V8TestSpecialOperations::findInstanceInPrototypeChain(v8:: Local<v8::Value> v8Value, v8::Isolate* isolate) { 202 v8::Local<v8::Object> V8TestSpecialOperations::findInstanceInPrototypeChain(v8:: Local<v8::Value> v8Value, v8::Isolate* isolate) {
203 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value); 203 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value);
204 } 204 }
205 205
206 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { 206 TestSpecialOperations* V8TestSpecialOperations::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) {
207 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 207 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
208 } 208 }
209 209
210 } // namespace blink 210 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698