incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hongbo lu (JIRA)" <>
Subject [jira] [Commented] (CB-604) doesn't work in strict mode
Date Thu, 13 Sep 2012 11:46:07 GMT


hongbo lu commented on CB-604:

it's simple to reproduce it, create an index.html:
<script type="text/javascript" src="http://localhost:8080/target/target-script-min.js#anonymous"></script>
<script src=""></script>

<script type="text/javascript">
    'use strict';

while trying to use httpRequest, it throws error:

TypeError: Illegal access to a strict mode caller function.

the error lines are:

in Google Chrome:

modjewel.define.getTrace           target-script-min.js:1049
StackTrace                         target-script-min.js:1008
modjewel.define.callBeforeHooks    target-script-min.js:567
modjewel.define.hookedFunction     target-script-min.js:543

in Firefox:

TypeError: func is undefined
[Break On This Error] 	

hookedFunction.displayName = func.displayName ||;  target...-min.js (line 554)

> doesn't work in strict mode
> ---------------------------
>                 Key: CB-604
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>         Environment: ubuntu/windows
>            Reporter: hongbo lu
>            Assignee: Patrick Mueller
> weinre doesn't work in strict mode ,because it trys to access "func.caller" which isn't
allowed in strict mode

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message