javascript - "arguments.callee" throwing exception in ES5 -
the issue
[exception: typeerror: 'caller', 'callee', , 'arguments' properties may not accessed on strict mode functions or arguments objects calls them]
founded on f.application
> __proto__ > *
marionette.js' object (backbone.marionette.application();
):
es5 prohibited utilize of arguments.callee
according mdn. however, using third-party library utilize , don't know how deal with.
my environment is:
jquery require.js underscore.js backbone.js marionette.js handlebars generali removed 'use strict';
own js
files – not third-party libraries; own scripts coded scratch – , can't see what's going wrong here – need enlightened.
so, can suggest me something? , yes, saw similar threads web-around, no success @ – think issue more specific others.
the pastfor ask, wasn't working marionette.js before in application – backbone.js. error began happen when migrated application "native" backbone marionette.
in marionette source:
application.js module.jsthere no 'use strict' on functions themselves, there 'use strict' on marionette core:
backbone.marionette.jscompare downloaded source project source, , verify addinitializer
method within scope not include 'use strict' pragma.
references
annotated marionette source
ecma-262, 5th edition: survey of latest javascript specification - strict mode in practice
marionette.js issue #387: marionette not compatible strict mode
javascript backbone.js marionette ecmascript-5
No comments:
Post a Comment