| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 0790c9a1755c7349c67195a9fb9296cb166c4a26..38f187cbcd5dc95cc20a9c0ca61c734fcba6ad29 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -2213,6 +2213,8 @@ bool Genesis::InstallSpecialObjects(Handle<Context> native_context) {
|
| if (FLAG_expose_natives_as != NULL && strlen(FLAG_expose_natives_as) != 0) {
|
| Handle<String> natives =
|
| factory->InternalizeUtf8String(FLAG_expose_natives_as);
|
| + uint32_t dummy_index;
|
| + if (natives->AsArrayIndex(&dummy_index)) return true;
|
| JSObject::AddProperty(global, natives, handle(global->builtins()),
|
| DONT_ENUM);
|
| }
|
|
|