You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.
I assume this is because all defined modules are saved to the define function itself. It looks like a function has a property length which cannot be overridden:
var f = function() {};
f.length = {};
console.log(f.length); // will be zero
Therefore this will not work:
define('length', function() { return {}; });
require(['length'], function(length) {}); // length will be zero
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I assume this is because all defined modules are saved to the define function itself. It looks like a function has a property length which cannot be overridden:
Therefore this will not work:
The text was updated successfully, but these errors were encountered: