Revision: 10826
Author:   [email protected]
Date:     Fri Feb 24 06:01:34 2012
Log:      Fix strict mode in d8.js.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/9463010
http://code.google.com/p/v8/source/detail?r=10826

Modified:
 /branches/bleeding_edge/src/d8.js

=======================================
--- /branches/bleeding_edge/src/d8.js   Mon Feb 20 05:48:24 2012
+++ /branches/bleeding_edge/src/d8.js   Fri Feb 24 06:01:34 2012
@@ -122,13 +122,15 @@
 };
 var trace_compile = false;  // Tracing all compile events?
 var trace_debug_json = false; // Tracing all debug json packets?
-var last_cmd_line = '';
+var last_cmd = '';
//var lol_is_enabled; // Set to true in d8.cc if LIVE_OBJECT_LIST is defined.
 var lol_next_dump_index = 0;
 var kDefaultLolLinesToPrintAtATime = 10;
 var kMaxLolLinesToPrintAtATime = 1000;
 var repeat_cmd_line = '';
 var is_running = true;
+// Global variable used to store whether a handle was requested.
+var lookup_handle = null;

 // Copied from debug-delay.js.  This is needed below:
 function ScriptTypeFlag(type) {
@@ -155,7 +157,7 @@
 }

 function DebugEventDetails(response) {
-  details = {text:'', running:false};
+  var details = {text:'', running:false};

   // Get the running state.
   details.running = response.running();
@@ -588,7 +590,6 @@

 // Create a JSON request for the evaluation command.
 DebugRequest.prototype.makeEvaluateJSONRequest_ = function(expression) {
-  // Global varaible used to store whether a handle was requested.
   lookup_handle = null;

   if (lol_is_enabled) {
@@ -1948,7 +1949,7 @@

 // Convert a JSON response to text for display in a text based debugger.
 function DebugResponseDetails(response) {
-  details = { text: '', running: false };
+  var details = { text: '', running: false };

   try {
     if (!response.success()) {

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to