Commit a20c0657 authored by eric@webkit.org's avatar eric@webkit.org

2010-01-28 Yury Semikhatsky <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Simplify isActivation method.

        https://bugs.webkit.org/show_bug.cgi?id=34161

        Test: WebCore/manual-tests/inspector/debugger-scopes-inspection.html

        * bindings/js/JSInjectedScriptHostCustom.cpp:
        (WebCore::JSInjectedScriptHost::isActivation):

git-svn-id: svn://svn.chromium.org/blink/trunk@53993 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent aec38f00
2010-01-28 Yury Semikhatsky <yurys@chromium.org>
Reviewed by Pavel Feldman.
Simplify isActivation method.
https://bugs.webkit.org/show_bug.cgi?id=34161
Test: WebCore/manual-tests/inspector/debugger-scopes-inspection.html
* bindings/js/JSInjectedScriptHostCustom.cpp:
(WebCore::JSInjectedScriptHost::isActivation):
2010-01-27 Kent Tamura <tkent@chromium.org> 2010-01-27 Kent Tamura <tkent@chromium.org>
Reviewed by Darin Adler. Reviewed by Darin Adler.
...@@ -126,17 +126,10 @@ JSValue JSInjectedScriptHost::currentCallFrame(ExecState* exec, const ArgList&) ...@@ -126,17 +126,10 @@ JSValue JSInjectedScriptHost::currentCallFrame(ExecState* exec, const ArgList&)
return toJS(exec, callFrame); return toJS(exec, callFrame);
} }
JSValue JSInjectedScriptHost::isActivation(ExecState* exec, const ArgList& args) JSValue JSInjectedScriptHost::isActivation(ExecState*, const ArgList& args)
{ {
if (args.size() < 1) JSObject* object = args.at(0).getObject();
return jsUndefined(); return jsBoolean(object && object->isActivationObject());
JSValue value = args.at(0);
if (!value.isObject())
return jsBoolean(false);
JSObject* object = value.toObject(exec);
return jsBoolean(object->isActivationObject());
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment