Comment #1 on issue 2957 by [email protected]: When debugging - delete statement is skipped
http://code.google.com/p/v8/issues/detail?id=2957

Here is my finding:

When node.js running debugger, it will enclose the script within a anonymous function. So I wrote a script and enclose delete operator within a function and found that even d8 will skip the delete operator. Here is test script and test steps:
$cat delete_infun.js
function a() {
debugger;
var exPE = { ex2_prop1 : 23, ex2_prop2 : 13 };
delete exPE.ex2_prop1;
debugger;
};
a();

$d8 --debugger delete_infun.js
JavaScript debugger enabled
break in a(), /home/tinaho/delete_infun.js line 2 column 5
debugger;
^
dbg> bt
Frames #0 to #1 of 2
#00 a() /home/tinaho/delete_infun.js line 2 column 5 (position 20)
#1 anonymous /home/tinaho/delete_infun.js line 11 column 1 (position 129)
dbg> n
(running)
break in a(), /home/tinaho/delete_infun.js line 4 column 5
var exPE = { ex2_prop1 : 23, ex2_prop2 : 13 };
^
dbg> n
(running)
break in a(), /home/tinaho/delete_infun.js line 8 column 5
debugger;
^
dbg> n
(running)
break in a() returning undefined, /home/tinaho/delete_infun.js line 9 column 1
};
^

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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/groups/opt_out.

Reply via email to