Comment #1 on issue 2872 by [email protected]: LiveEdit leaves closures
in incorrect state.
http://code.google.com/p/v8/issues/detail?id=2872
JS unit test that demonstrates the problem:
Debug = debug.Debug
eval(
"function TestFunction() {\n"
+ " var a = 'a';\n"
+ " var b = 'b';\n"
+ " var c = 'c';\n"
+ " function A() {\n"
+ " return 2013;\n"
+ " }\n"
+ " function B() {\n"
+ " return String([a, c]);\n"
+ " }\n"
+ " return B();\n"
+ "}\n"
);
var res = TestFunction();
assertEquals('a,c', res);
var script = Debug.findScript(TestFunction);
var new_source = script.source.replace("2013", "b");
var result = Debug.LiveEdit.SetScriptSource(script, new_source, false, []);
var res = TestFunction();
assertEquals('a,c', res); // This currently fails.
--
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.