Prevent browserify from leaking the require function
authorThiago de Arruda <tpadilha84@gmail.com>
Tue, 21 Mar 2017 13:45:40 +0000 (10:45 -0300)
committerThiago de Arruda <tpadilha84@gmail.com>
Thu, 23 Mar 2017 13:01:02 +0000 (10:01 -0300)
commitbf756e3c00c79f4f7886dd7ea4d3c27eb5fbfcb0
treea922d7925ef95a10d285ba5fa884db92d494a648
parente1aebef57c00bd254b64c813e388eaeea53c6e5f
Prevent browserify from leaking the require function

Define a "require" argument in the wrapper functions that runs browserify
bundles, which will prevent browserify from leaking the require function.

Note that this doesn't affect the isolated renderer script, only when `-r` flag
is passed to browserify command it will export a require function. It is still
added to isolated renderer script to prevent future mistakes(doesn't hurt
defining a "require" local).
atom/renderer/atom_renderer_client.cc
atom/renderer/atom_sandboxed_renderer_client.cc