Commit 3ff882ff authored by rossberg@chromium.org's avatar rossberg@chromium.org

Make proxy fixing GC safe.

R=vegorov@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/7460009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8708 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 3f5bc11c
......@@ -2331,7 +2331,7 @@ void JSProxy::Fix() {
Handle<JSProxy> self(this);
isolate->factory()->BecomeJSObject(self);
ASSERT(IsJSObject());
ASSERT(self->IsJSObject());
// TODO(rossberg): recognize function proxies.
}
......
......@@ -619,7 +619,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_Fix) {
ASSERT(args.length() == 1);
CONVERT_CHECKED(JSProxy, proxy, args[0]);
proxy->Fix();
return proxy;
return isolate->heap()->undefined_value();
}
......
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