JavaScript hotwap silently fails
Reported by
petton.n...@gmail.com,
Apr 21 2017
|
|||||
Issue description
UserAgent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Steps to reproduce the problem:
1. open an html file that loads the attached index.js script
2. Open the DevTools
3. change the function `foo` like the following:
function foo() {
bar();
}
function bar() {
window.alert('bar');
}
4. click on the window
What is the expected behavior?
`bar` gets evaluated, an alert with "bar" is displayed
What went wrong?
The definition of `foo` is never updated.
Did this work before? No
Chrome version: 58.0.3029.81 (64-bit) Channel: stable
OS Version: Fedora 25 64bit
Flash Version:
Sniffing the devtools and looking at the WebSocket, it looks like the hotswap fails silently, here's the result of the `Debugger.setScriptSource` call:
{"id":154,"result":{"callFrames":[],"stackChanged":false}}
There's apparently no exception.
,
Apr 21 2017
,
Apr 23 2017
,
Apr 24 2017
Able to reproduce the issue on windows 7, Ubuntu 14.04 and Mac 10.12.4 using chrome version 58.0.3029.81 and canary 60.0.3078.0 with the below steps 1. opened an html file that loads the attached index.js script 2. Open the DevTools 3. change the function `foo` with above mentioned code 4.Observed again foo displayed when clicked on window This is observed from old M40 versions.In M50 versions showing the error in console as bar is not defined. Thanks,
,
May 18 2017
Can we have the latest update on this issue?
,
Jun 5 2017
Looks to be fixed in ToT. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by petton.n...@gmail.com
, Apr 21 201762 bytes
62 bytes View Download
79 bytes
79 bytes View Download