Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 3642) |
+++ src/runtime.cc (working copy) |
@@ -583,6 +583,7 @@ |
// if args[1] is an accessor on args[0] |
// [true, GetFunction, SetFunction, Enumerable, Configurable] |
static Object* Runtime_GetOwnProperty(Arguments args) { |
+ ASSERT(args.lenght() == 2); |
HandleScope scope; |
Handle<FixedArray> elms = Factory::NewFixedArray(5); |
Handle<JSArray> desc = Factory::NewJSArrayWithElements(elms); |
@@ -626,6 +627,14 @@ |
} |
+static Object* Runtime_IsExtensible(Arguments args) { |
+ ASSERT(args.length() == 1); |
+ CONVERT_CHECKED(JSObject, obj, args[0]); |
+ return obj->map()->is_extensible() ? Heap::true_value() |
+ : Heap::false_value(); |
+} |
+ |
+ |
static Object* Runtime_RegExpCompile(Arguments args) { |
HandleScope scope; |
ASSERT(args.length() == 3); |