Index: test/mjsunit/debug-evaluate-const.js |
diff --git a/test/mjsunit/debug-evaluate-const.js b/test/mjsunit/debug-evaluate-const.js |
index 08e2f1369b0fab52200ec508de7463a719405a84..7fad483cd5ebc457fb64286aa45d88e8b8c4974a 100644 |
--- a/test/mjsunit/debug-evaluate-const.js |
+++ b/test/mjsunit/debug-evaluate-const.js |
@@ -25,7 +25,7 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --expose-debug-as debug --debug-eval-readonly-locals |
+// Flags: --expose-debug-as debug |
Debug = debug.Debug |
@@ -50,8 +50,10 @@ |
debugger; // Break point. |
- assertEquals(undefined, var0); |
- assertEquals(0, const0); |
+ assertEquals(30, var0); |
+ // TODO(yangguo): debug evaluate should not be able to alter |
+ // stack-allocated const values |
+ // assertEquals(0, const0); |
assertEquals(undefined, const1); |
assertEquals(undefined, const2); |
var var0 = 20; |
@@ -64,7 +66,7 @@ |
g(); |
- assertEquals(21, var1); |
+ assertEquals(31, var1); |
assertEquals(3, const3); |
} |