A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/paulmillr/es6-shim/commit/ceeb51cc99bbe3729e96eae8c7af966a2d67dfde below:

A more reliable method to get the global object · paulmillr/es6-shim@ceeb51c · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed Original file line number Diff line number Diff line change

@@ -48,8 +48,12 @@

48 48

return rejectsRegex;

49 49

};

50 50 51 +

/*jshint evil: true */

52 +

var getGlobal = new Function('return this;');

53 +

/*jshint evil: false */

54 + 51 55

var main = function() {

52 -

var globals = (typeof global === 'undefined') ? self : global;

56 +

var globals = getGlobal();

53 57

var global_isFinite = globals.isFinite;

54 58

var supportsDescriptors = !!Object.defineProperty && arePropertyDescriptorsSupported();

55 59

var startsWithIsCompliant = startsWithRejectsRegex();

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4