Open ChinYikMing opened 8 months ago
Yes, this is true for all attributes on the incoming module object. The attributes don't exist in pre-js files until you set them. Perhaps the docs can be updated to make this more clear.
Is there somewhere that you read that it was OK to assume the existence of these properties during pre-js? I.e. are there any other places that might need updating?
I believe there are still a few points that need to be made clear. I will follow up this issue once I figure out more.
The current documentation about
Module.arguments
is not clear enough, see doc. You will receive "undefined" if you useModule.arguments
straight in prejs because the documentation doesn't indicate that you should initialize it first, for example:Initializing
Module.arguments
before utilizing it in prejs is the proper usage procedure:Related to: #11239