(bug 45167) Don't use a closure for wgExtensionFunctions

Change-Id: I28bb0cbb7ec10037acce489fdb8782372bf55187
Merge "(bug 45167) Don't use a closure for wgExtensionFunctions"