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
@bobzhang Not sure if this is complete list but should cover most of the cases.
I printed window object in Chrome console and
constCOPIED_WINDOW_OBJECT_STRING=`AppView: class extendsExtensionOptions: class extendsExtensionView: class extendsalert: ƒ alert()...`;COPIED_WINDOW_OBJECT_STRING.split("\n").map(x=>x.split(":")[0]).filter(x=>x&&/^[A-Z]/.test(x[0])).join("\n")
@alexfedoseev It would be great that if you can verify it is fixed in master
I feel it is a bit extreme to avoid shadowing variables like name, JS users should write window.name instead, we might make some trade off here
Activity
bobzhang commentedon Jan 11, 2019
Indeed, do you have other in mind, so that we can do them in a single pass
alex35mil commentedon Jan 12, 2019
@bobzhang Not sure if this is complete list but should cover most of the cases.
I printed
windowobject in Chrome console andResult
bobzhang commentedon Jan 14, 2019
Thanks, this seems to be huge.
For the record,
Object.getOwnProperties(window)will list a complete list of global namesfix #3268
Merge pull request #3278 from BuckleScript/address_3268
bobzhang commentedon Jan 14, 2019
@alexfedoseev It would be great that if you can verify it is fixed in master
I feel it is a bit extreme to avoid shadowing variables like
name, JS users should writewindow.nameinstead, we might make some trade off herekamituel commentedon Feb 21, 2019
I've stumbled upon this issue today. Glenn has helped me already, but posting it here just for context on another browser API binding it affects: https://stackoverflow.com/questions/54803396/module-name-is-shadowing-global-name-used-in-binding#54803396
bobzhang commentedon Feb 21, 2019
I think this is solved, do you still find such issue in master or bs-platform@next?
kamituel commentedon Feb 21, 2019
@bobzhang Just checked and indeed, with
bs-platform@nextit's all good. Awesome!