webpack/buildin
HE Shi-Jun 48f06041d1
Drop unuseful `eval` call
If use CSP (without `unsafe-eval`), both `new Function` and `eval` will be forbidden, so `eval` part is just dead code.

The only possibility `eval` part would run was `new Function('return this')()` return a falsy value, but it never possible as the spec (Is there any old engine violate this? Never heard about that.)

This pr also add `new` keyword to make the code a little bit explicit.
2018-11-16 17:20:53 +08:00
..
amd-define.js refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot (#3636) 2016-12-30 09:43:49 -06:00
amd-options.js refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot (#3636) 2016-12-30 09:43:49 -06:00
global.js Drop unuseful `eval` call 2018-11-16 17:20:53 +08:00
harmony-module.js run prettier on existing code 2018-02-25 02:00:20 +01:00
module.js run prettier on existing code 2018-02-25 02:00:20 +01:00
system.js readd previous checks - refactor System polyfill 2017-03-01 00:41:19 +11:00