Added checked convert of object to DefineOrRedefineAccessorProperty.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3803 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ricow@chromium.org 2010-02-05 07:19:09 +00:00
parent e51a05f338
commit f119ecbc7a

View File

@ -2891,7 +2891,7 @@ static Object* Runtime_KeyedGetProperty(Arguments args) {
static Object* Runtime_DefineOrRedefineAccessorProperty(Arguments args) {
ASSERT(args.length() == 5);
HandleScope scope;
Handle<JSObject> obj = args.at<JSObject>(0);
CONVERT_ARG_CHECKED(JSObject, obj, 0);
CONVERT_CHECKED(String, name, args[1]);
CONVERT_CHECKED(Smi, flag_setter, args[2]);
CONVERT_CHECKED(JSFunction, fun, args[3]);