src/core: alternative method of getting '__globals' to work in strict mode