This will not have any effect because snippet manager caches the scope using second argument as a fallback https://github.com/ajaxorg/ace/blob/master/lib/ace/snippets.js#L477.
But if it worked js snippets would be active in the top scope, which is wrong, they should be active only in script tag.