mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-07 08:32:18 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
29
web/node_modules/es6-symbol/lib/private/generate-name.js
generated
vendored
Normal file
29
web/node_modules/es6-symbol/lib/private/generate-name.js
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
"use strict";
|
||||
|
||||
var d = require("d");
|
||||
|
||||
var create = Object.create, defineProperty = Object.defineProperty, objPrototype = Object.prototype;
|
||||
|
||||
var created = create(null);
|
||||
module.exports = function (desc) {
|
||||
var postfix = 0, name, ie11BugWorkaround;
|
||||
while (created[desc + (postfix || "")]) ++postfix;
|
||||
desc += postfix || "";
|
||||
created[desc] = true;
|
||||
name = "@@" + desc;
|
||||
defineProperty(
|
||||
objPrototype,
|
||||
name,
|
||||
d.gs(null, function (value) {
|
||||
// For IE11 issue see:
|
||||
// https://connect.microsoft.com/IE/feedbackdetail/view/1928508/
|
||||
// ie11-broken-getters-on-dom-objects
|
||||
// https://github.com/medikoo/es6-symbol/issues/12
|
||||
if (ie11BugWorkaround) return;
|
||||
ie11BugWorkaround = true;
|
||||
defineProperty(this, name, d(value));
|
||||
ie11BugWorkaround = false;
|
||||
})
|
||||
);
|
||||
return name;
|
||||
};
|
34
web/node_modules/es6-symbol/lib/private/setup/standard-symbols.js
generated
vendored
Normal file
34
web/node_modules/es6-symbol/lib/private/setup/standard-symbols.js
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
"use strict";
|
||||
|
||||
var d = require("d")
|
||||
, NativeSymbol = require("ext/global-this").Symbol;
|
||||
|
||||
module.exports = function (SymbolPolyfill) {
|
||||
return Object.defineProperties(SymbolPolyfill, {
|
||||
// To ensure proper interoperability with other native functions (e.g. Array.from)
|
||||
// fallback to eventual native implementation of given symbol
|
||||
hasInstance: d(
|
||||
"", (NativeSymbol && NativeSymbol.hasInstance) || SymbolPolyfill("hasInstance")
|
||||
),
|
||||
isConcatSpreadable: d(
|
||||
"",
|
||||
(NativeSymbol && NativeSymbol.isConcatSpreadable) ||
|
||||
SymbolPolyfill("isConcatSpreadable")
|
||||
),
|
||||
iterator: d("", (NativeSymbol && NativeSymbol.iterator) || SymbolPolyfill("iterator")),
|
||||
match: d("", (NativeSymbol && NativeSymbol.match) || SymbolPolyfill("match")),
|
||||
replace: d("", (NativeSymbol && NativeSymbol.replace) || SymbolPolyfill("replace")),
|
||||
search: d("", (NativeSymbol && NativeSymbol.search) || SymbolPolyfill("search")),
|
||||
species: d("", (NativeSymbol && NativeSymbol.species) || SymbolPolyfill("species")),
|
||||
split: d("", (NativeSymbol && NativeSymbol.split) || SymbolPolyfill("split")),
|
||||
toPrimitive: d(
|
||||
"", (NativeSymbol && NativeSymbol.toPrimitive) || SymbolPolyfill("toPrimitive")
|
||||
),
|
||||
toStringTag: d(
|
||||
"", (NativeSymbol && NativeSymbol.toStringTag) || SymbolPolyfill("toStringTag")
|
||||
),
|
||||
unscopables: d(
|
||||
"", (NativeSymbol && NativeSymbol.unscopables) || SymbolPolyfill("unscopables")
|
||||
)
|
||||
});
|
||||
};
|
23
web/node_modules/es6-symbol/lib/private/setup/symbol-registry.js
generated
vendored
Normal file
23
web/node_modules/es6-symbol/lib/private/setup/symbol-registry.js
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
"use strict";
|
||||
|
||||
var d = require("d")
|
||||
, validateSymbol = require("../../../validate-symbol");
|
||||
|
||||
var registry = Object.create(null);
|
||||
|
||||
module.exports = function (SymbolPolyfill) {
|
||||
return Object.defineProperties(SymbolPolyfill, {
|
||||
for: d(function (key) {
|
||||
if (registry[key]) return registry[key];
|
||||
return (registry[key] = SymbolPolyfill(String(key)));
|
||||
}),
|
||||
keyFor: d(function (symbol) {
|
||||
var key;
|
||||
validateSymbol(symbol);
|
||||
for (key in registry) {
|
||||
if (registry[key] === symbol) return key;
|
||||
}
|
||||
return undefined;
|
||||
})
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue