Revision: 23228
Author: [email protected]
Date: Wed Aug 20 11:52:22 2014 UTC
Log: Fix --expose-debug-as with number as argument.
[email protected]
BUG=405491
LOG=N
Review URL: https://codereview.chromium.org/468803004
http://code.google.com/p/v8/source/detail?r=23228
Added:
/branches/bleeding_edge/test/mjsunit/regress/regress-crbug-405491.js
Modified:
/branches/bleeding_edge/src/bootstrapper.cc
=======================================
--- /dev/null
+++ /branches/bleeding_edge/test/mjsunit/regress/regress-crbug-405491.js
Wed Aug 20 11:52:22 2014 UTC
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --expose-debug-as 1
=======================================
--- /branches/bleeding_edge/src/bootstrapper.cc Mon Aug 18 14:59:04 2014 UTC
+++ /branches/bleeding_edge/src/bootstrapper.cc Wed Aug 20 11:52:22 2014 UTC
@@ -2204,6 +2204,8 @@
debug_context->set_security_token(native_context->security_token());
Handle<String> debug_string =
factory->InternalizeUtf8String(FLAG_expose_debug_as);
+ uint32_t index;
+ if (debug_string->AsArrayIndex(&index)) return true;
Handle<Object> global_proxy(debug_context->global_proxy(), isolate);
JSObject::AddProperty(global, debug_string, global_proxy, DONT_ENUM);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.