Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.0
-
None
-
None
-
iPad iOS 6.1.3
Description
Wanting to debug my web application on the iPad.
However, including the weinre target script makes ajax.open fail. It works on the desktop tough.
Following error is catched by my code and printed on console:
Internal failure, TypeError: Function.caller used to retrieve strict caller
file: undefined
line: undefined
stack: getTrace@http://192.168.1.102:8080/target/target-script-min.js:1033
StackTrace@http://192.168.1.102:8080/target/target-script-min.js:1008
before@http://192.168.1.102:8080/target/target-script-min.js:2868
callBeforeHooks@http://192.168.1.102:8080/target/target-script-min.js:561
open@http://192.168.1.102:8080/target/target-script-min.js:545
_ajax@http://192.168.1.102:8833/shell/iface.js:100
shell/iface.js looks like this:
var ajax =
new XMLHttpRequest( );
ajax.open( // <-- this is line 100
'POST',
'/mm',
true
);
I tried to remove "use strict" from my code, but it makes no difference. Removing the weinre target script makes this part of the code work again.
weinre --help
usage: weinre [options]
version: 2.0.0-pre-HA5N9T49
Attachments
Issue Links
- duplicates
-
CB-604 doesn't work in strict mode
- Closed
The failure is because strict mode is not supported, as near as I can tell from your description.