Chromium Code Reviews| Index: Source/bindings/v8/custom/V8ErrorEventCustom.cpp |
| diff --git a/Source/core/page/RuntimeEnabledFeaturesCustom.cpp b/Source/bindings/v8/custom/V8ErrorEventCustom.cpp |
| similarity index 68% |
| copy from Source/core/page/RuntimeEnabledFeaturesCustom.cpp |
| copy to Source/bindings/v8/custom/V8ErrorEventCustom.cpp |
| index 2ac204d2e28b6eb6e2418ed5e635d890715f6b76..6aea8cdef4c5706a0322eaeda95cf505d3202c7f 100644 |
| --- a/Source/core/page/RuntimeEnabledFeaturesCustom.cpp |
| +++ b/Source/bindings/v8/custom/V8ErrorEventCustom.cpp |
| @@ -29,15 +29,32 @@ |
| */ |
| #include "config.h" |
| -#include "RuntimeEnabledFeatures.h" |
| +#include "V8ErrorEvent.h" |
| -#include "core/workers/SharedWorkerRepository.h" |
| +#include "RuntimeEnabledFeatures.h" |
| +#include "V8Event.h" |
| +#include "bindings/v8/DOMWrapperWorld.h" |
| +#include "bindings/v8/Dictionary.h" |
| +#include "bindings/v8/ScriptState.h" |
| +#include "bindings/v8/SerializedScriptValue.h" |
| +#include "bindings/v8/V8Binding.h" |
| +#include "bindings/v8/V8DOMWrapper.h" |
| +#include "bindings/v8/V8HiddenPropertyName.h" |
| +#include "core/dom/ContextFeatures.h" |
| +#include "core/page/Frame.h" |
| namespace WebCore { |
| -bool RuntimeEnabledFeatures::sharedWorkerEnabled() |
| +void V8ErrorEvent::errorAttrGetterCustom(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| { |
| - return SharedWorkerRepository::isAvailable(); |
| + v8::Handle<v8::Value> error = info.Holder()->GetHiddenValue(V8HiddenPropertyName::error()); |
| + |
| + if (!error.IsEmpty()) { |
| + v8SetReturnValue(info, error); |
| + return; |
| + } |
| + |
| + v8SetReturnValue(info, v8::Null(info.GetIsolate())); |
|
dcarney
2013/08/01 08:05:21
v8SetReturnValueNull
|
| } |
| } // namespace WebCore |