libraries/v8/runtime.cc
// Return the names of the local indexed properties.
// args[0]: object
Return the names of the local indexed properties.
args[0]: object
Return the names of the local indexed properties . args [ 0 ] : object
RUNTIME_FUNCTION(MaybeObject*, Runtime_GetLocalElementNames) {
  HandleScope scope(isolate);
  ASSERT(args.length() == 1);
  if (!args[0]->IsJSObject()) {
    return isolate->heap()->undefined_value();
  }
  CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
  int n = obj->NumberOfLocalElements(static_cast<PropertyAttributes>(NONE));
  Handle<FixedArray> names = isolate->factory()->NewFixedArray(n);
  obj->GetLocalElementKeys(*names, static_cast<PropertyAttributes>(NONE));
  return *isolate->factory()->NewJSArrayWithElements(names);
}
RUNTIME_FUNCTION ( MaybeObject * , Runtime_GetLocalElementNames ) { HandleScope scope ( isolate ) ; ASSERT ( args . length ( ) == 1 ) ; if ( ! args [ 0 ] -> IsJSObject ( ) ) { return isolate -> heap ( ) -> undefined_value ( ) ; } CONVERT_ARG_HANDLE_CHECKED ( JSObject , obj , 0 ) ; int n = obj -> NumberOfLocalElements ( static_cast < PropertyAttributes > ( NONE ) ) ; Handle < FixedArray > names = isolate -> factory ( ) -> NewFixedArray ( n ) ; obj -> GetLocalElementKeys ( * names , static_cast < PropertyAttributes > ( NONE ) ) ; return * isolate -> factory ( ) -> NewJSArrayWithElements ( names ) ; }
Return the names of the local indexed properties.
Return the names of the local indexed properties .