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
[acl][commonjs] ACL for function calls to CommonJS module is treated as module.prototype.constructor
Root Cause
Function calls to X() in const X = require("commonjs-module") with module.exports = function X() {} are treated as those to commonjs-module.prototype.constructor in ACL
Modules are not globals and thus not treated as properties of the global object
[acl][commonjs] ACL for function calls to CommonJS module is treated as
module.prototype.constructor
Root Cause
X()
inconst X = require("commonjs-module")
withmodule.exports = function X() {}
are treated as those tocommonjs-module.prototype.constructor
in ACLReproducible Code
webpack
orbrowserify
Workaround
acl["/node_modules/commonjs-module/index.js"][S_PROTOTYPE]["$constructor$"] : ACL
insteadPossible Fix
Ad-hoc Fix (Not Verified Well)
acl["/node_modules/module-name/index.js"]
Note
_globalMethods
and I am investigating whether it is possible to integrate_globalMethods
map with_globalObjects
mapThe text was updated successfully, but these errors were encountered: