From ecf0c67e65de44dc9929bae3cb2fd08e741f9785 Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Tue, 22 Dec 2015 18:30:08 +0600 Subject: [PATCH] entry points: /methods/ -> /virtual/ --- fn/array/methods/copy-within.js | 2 - fn/array/methods/entries.js | 2 - fn/array/methods/fill.js | 2 - fn/array/methods/find-index.js | 2 - fn/array/methods/find.js | 2 - fn/array/methods/includes.js | 2 - fn/array/methods/keys.js | 2 - fn/array/virtual/copy-within.js | 2 + fn/array/virtual/entries.js | 2 + fn/array/virtual/fill.js | 2 + fn/array/virtual/find-index.js | 2 + fn/array/virtual/find.js | 2 + fn/array/virtual/includes.js | 2 + fn/array/virtual/index.js | 8 ++ fn/array/{methods => virtual}/iterator.js | 0 fn/array/virtual/keys.js | 2 + fn/array/{methods => virtual}/values.js | 0 fn/function/methods/part.js | 3 - fn/function/virtual/index.js | 2 + fn/function/virtual/part.js | 2 + fn/number/virtual/index.js | 2 + fn/number/{methods => virtual}/iterator.js | 0 fn/string/methods/anchor.js | 2 - fn/string/methods/at.js | 2 - fn/string/methods/big.js | 2 - fn/string/methods/blink.js | 2 - fn/string/methods/bold.js | 2 - fn/string/methods/code-point-at.js | 2 - fn/string/methods/ends-with.js | 2 - fn/string/methods/escape-html.js | 2 - fn/string/methods/fixed.js | 2 - fn/string/methods/fontcolor.js | 2 - fn/string/methods/fontsize.js | 2 - fn/string/methods/includes.js | 2 - fn/string/methods/italics.js | 2 - fn/string/methods/link.js | 2 - fn/string/methods/pad-end.js | 2 - fn/string/methods/pad-start.js | 2 - fn/string/methods/repeat.js | 2 - fn/string/methods/small.js | 2 - fn/string/methods/starts-with.js | 2 - fn/string/methods/strike.js | 2 - fn/string/methods/sub.js | 2 - fn/string/methods/sup.js | 2 - fn/string/methods/trim-end.js | 2 - fn/string/methods/trim-left.js | 2 - fn/string/methods/trim-right.js | 2 - fn/string/methods/trim-start.js | 2 - fn/string/methods/trim.js | 2 - fn/string/methods/unescape-html.js | 2 - fn/string/virtual/anchor.js | 2 + fn/string/virtual/at.js | 2 + fn/string/virtual/big.js | 2 + fn/string/virtual/blink.js | 2 + fn/string/virtual/bold.js | 2 + fn/string/virtual/code-point-at.js | 2 + fn/string/virtual/ends-with.js | 2 + fn/string/virtual/escape-html.js | 2 + fn/string/virtual/fixed.js | 2 + fn/string/virtual/fontcolor.js | 2 + fn/string/virtual/fontsize.js | 2 + fn/string/virtual/includes.js | 2 + fn/string/virtual/index.js | 32 ++++++++ fn/string/virtual/italics.js | 2 + fn/string/{methods => virtual}/iterator.js | 0 fn/string/virtual/link.js | 2 + fn/string/virtual/pad-end.js | 2 + fn/string/virtual/pad-start.js | 2 + fn/string/virtual/repeat.js | 2 + fn/string/virtual/small.js | 2 + fn/string/virtual/starts-with.js | 2 + fn/string/virtual/strike.js | 2 + fn/string/virtual/sub.js | 2 + fn/string/virtual/sup.js | 2 + fn/string/virtual/trim-end.js | 2 + fn/string/virtual/trim-left.js | 2 + fn/string/virtual/trim-right.js | 2 + fn/string/virtual/trim-start.js | 2 + fn/string/virtual/trim.js | 2 + fn/string/virtual/unescape-html.js | 2 + library/fn/array/methods/copy-within.js | 2 - library/fn/array/methods/entries.js | 2 - library/fn/array/methods/fill.js | 2 - library/fn/array/methods/find-index.js | 2 - library/fn/array/methods/find.js | 2 - library/fn/array/methods/includes.js | 2 - library/fn/array/methods/keys.js | 2 - library/fn/array/virtual/copy-within.js | 2 + library/fn/array/virtual/entries.js | 2 + library/fn/array/virtual/fill.js | 2 + library/fn/array/virtual/find-index.js | 2 + library/fn/array/virtual/find.js | 2 + library/fn/array/virtual/includes.js | 2 + library/fn/array/virtual/index.js | 8 ++ .../fn/array/{methods => virtual}/iterator.js | 0 library/fn/array/virtual/keys.js | 2 + .../fn/array/{methods => virtual}/values.js | 0 library/fn/function/methods/part.js | 3 - library/fn/function/virtual/index.js | 2 + library/fn/function/virtual/part.js | 2 + library/fn/number/virtual/index.js | 2 + .../number/{methods => virtual}/iterator.js | 0 library/fn/string/methods/anchor.js | 2 - library/fn/string/methods/at.js | 2 - library/fn/string/methods/big.js | 2 - library/fn/string/methods/blink.js | 2 - library/fn/string/methods/bold.js | 2 - library/fn/string/methods/code-point-at.js | 2 - library/fn/string/methods/ends-with.js | 2 - library/fn/string/methods/escape-html.js | 2 - library/fn/string/methods/fixed.js | 2 - library/fn/string/methods/fontcolor.js | 2 - library/fn/string/methods/fontsize.js | 2 - library/fn/string/methods/includes.js | 2 - library/fn/string/methods/italics.js | 2 - library/fn/string/methods/link.js | 2 - library/fn/string/methods/pad-end.js | 2 - library/fn/string/methods/pad-start.js | 2 - library/fn/string/methods/repeat.js | 2 - library/fn/string/methods/small.js | 2 - library/fn/string/methods/starts-with.js | 2 - library/fn/string/methods/strike.js | 2 - library/fn/string/methods/sub.js | 2 - library/fn/string/methods/sup.js | 2 - library/fn/string/methods/trim-end.js | 2 - library/fn/string/methods/trim-left.js | 2 - library/fn/string/methods/trim-right.js | 2 - library/fn/string/methods/trim-start.js | 2 - library/fn/string/methods/trim.js | 2 - library/fn/string/methods/unescape-html.js | 2 - library/fn/string/virtual/anchor.js | 2 + library/fn/string/virtual/at.js | 2 + library/fn/string/virtual/big.js | 2 + library/fn/string/virtual/blink.js | 2 + library/fn/string/virtual/bold.js | 2 + library/fn/string/virtual/code-point-at.js | 2 + library/fn/string/virtual/ends-with.js | 2 + library/fn/string/virtual/escape-html.js | 2 + library/fn/string/virtual/fixed.js | 2 + library/fn/string/virtual/fontcolor.js | 2 + library/fn/string/virtual/fontsize.js | 2 + library/fn/string/virtual/includes.js | 2 + library/fn/string/virtual/index.js | 32 ++++++++ library/fn/string/virtual/italics.js | 2 + .../string/{methods => virtual}/iterator.js | 0 library/fn/string/virtual/link.js | 2 + library/fn/string/virtual/pad-end.js | 2 + library/fn/string/virtual/pad-start.js | 2 + library/fn/string/virtual/repeat.js | 2 + library/fn/string/virtual/small.js | 2 + library/fn/string/virtual/starts-with.js | 2 + library/fn/string/virtual/strike.js | 2 + library/fn/string/virtual/sub.js | 2 + library/fn/string/virtual/sup.js | 2 + library/fn/string/virtual/trim-end.js | 2 + library/fn/string/virtual/trim-left.js | 2 + library/fn/string/virtual/trim-right.js | 2 + library/fn/string/virtual/trim-start.js | 2 + library/fn/string/virtual/trim.js | 2 + library/fn/string/virtual/unescape-html.js | 2 + library/modules/_entry-prototype.js | 5 -- library/modules/_entry-virtual.js | 5 ++ library/modules/_export.js | 2 +- modules/_entry-prototype.js | 5 -- modules/_entry-virtual.js | 5 ++ modules/library/_export.js | 2 +- tests/commonjs.ls | 81 ++++++++++--------- 167 files changed, 287 insertions(+), 196 deletions(-) delete mode 100644 fn/array/methods/copy-within.js delete mode 100644 fn/array/methods/entries.js delete mode 100644 fn/array/methods/fill.js delete mode 100644 fn/array/methods/find-index.js delete mode 100644 fn/array/methods/find.js delete mode 100644 fn/array/methods/includes.js delete mode 100644 fn/array/methods/keys.js create mode 100644 fn/array/virtual/copy-within.js create mode 100644 fn/array/virtual/entries.js create mode 100644 fn/array/virtual/fill.js create mode 100644 fn/array/virtual/find-index.js create mode 100644 fn/array/virtual/find.js create mode 100644 fn/array/virtual/includes.js create mode 100644 fn/array/virtual/index.js rename fn/array/{methods => virtual}/iterator.js (100%) create mode 100644 fn/array/virtual/keys.js rename fn/array/{methods => virtual}/values.js (100%) delete mode 100644 fn/function/methods/part.js create mode 100644 fn/function/virtual/index.js create mode 100644 fn/function/virtual/part.js create mode 100644 fn/number/virtual/index.js rename fn/number/{methods => virtual}/iterator.js (100%) delete mode 100644 fn/string/methods/anchor.js delete mode 100644 fn/string/methods/at.js delete mode 100644 fn/string/methods/big.js delete mode 100644 fn/string/methods/blink.js delete mode 100644 fn/string/methods/bold.js delete mode 100644 fn/string/methods/code-point-at.js delete mode 100644 fn/string/methods/ends-with.js delete mode 100644 fn/string/methods/escape-html.js delete mode 100644 fn/string/methods/fixed.js delete mode 100644 fn/string/methods/fontcolor.js delete mode 100644 fn/string/methods/fontsize.js delete mode 100644 fn/string/methods/includes.js delete mode 100644 fn/string/methods/italics.js delete mode 100644 fn/string/methods/link.js delete mode 100644 fn/string/methods/pad-end.js delete mode 100644 fn/string/methods/pad-start.js delete mode 100644 fn/string/methods/repeat.js delete mode 100644 fn/string/methods/small.js delete mode 100644 fn/string/methods/starts-with.js delete mode 100644 fn/string/methods/strike.js delete mode 100644 fn/string/methods/sub.js delete mode 100644 fn/string/methods/sup.js delete mode 100644 fn/string/methods/trim-end.js delete mode 100644 fn/string/methods/trim-left.js delete mode 100644 fn/string/methods/trim-right.js delete mode 100644 fn/string/methods/trim-start.js delete mode 100644 fn/string/methods/trim.js delete mode 100644 fn/string/methods/unescape-html.js create mode 100644 fn/string/virtual/anchor.js create mode 100644 fn/string/virtual/at.js create mode 100644 fn/string/virtual/big.js create mode 100644 fn/string/virtual/blink.js create mode 100644 fn/string/virtual/bold.js create mode 100644 fn/string/virtual/code-point-at.js create mode 100644 fn/string/virtual/ends-with.js create mode 100644 fn/string/virtual/escape-html.js create mode 100644 fn/string/virtual/fixed.js create mode 100644 fn/string/virtual/fontcolor.js create mode 100644 fn/string/virtual/fontsize.js create mode 100644 fn/string/virtual/includes.js create mode 100644 fn/string/virtual/index.js create mode 100644 fn/string/virtual/italics.js rename fn/string/{methods => virtual}/iterator.js (100%) create mode 100644 fn/string/virtual/link.js create mode 100644 fn/string/virtual/pad-end.js create mode 100644 fn/string/virtual/pad-start.js create mode 100644 fn/string/virtual/repeat.js create mode 100644 fn/string/virtual/small.js create mode 100644 fn/string/virtual/starts-with.js create mode 100644 fn/string/virtual/strike.js create mode 100644 fn/string/virtual/sub.js create mode 100644 fn/string/virtual/sup.js create mode 100644 fn/string/virtual/trim-end.js create mode 100644 fn/string/virtual/trim-left.js create mode 100644 fn/string/virtual/trim-right.js create mode 100644 fn/string/virtual/trim-start.js create mode 100644 fn/string/virtual/trim.js create mode 100644 fn/string/virtual/unescape-html.js delete mode 100644 library/fn/array/methods/copy-within.js delete mode 100644 library/fn/array/methods/entries.js delete mode 100644 library/fn/array/methods/fill.js delete mode 100644 library/fn/array/methods/find-index.js delete mode 100644 library/fn/array/methods/find.js delete mode 100644 library/fn/array/methods/includes.js delete mode 100644 library/fn/array/methods/keys.js create mode 100644 library/fn/array/virtual/copy-within.js create mode 100644 library/fn/array/virtual/entries.js create mode 100644 library/fn/array/virtual/fill.js create mode 100644 library/fn/array/virtual/find-index.js create mode 100644 library/fn/array/virtual/find.js create mode 100644 library/fn/array/virtual/includes.js create mode 100644 library/fn/array/virtual/index.js rename library/fn/array/{methods => virtual}/iterator.js (100%) create mode 100644 library/fn/array/virtual/keys.js rename library/fn/array/{methods => virtual}/values.js (100%) delete mode 100644 library/fn/function/methods/part.js create mode 100644 library/fn/function/virtual/index.js create mode 100644 library/fn/function/virtual/part.js create mode 100644 library/fn/number/virtual/index.js rename library/fn/number/{methods => virtual}/iterator.js (100%) delete mode 100644 library/fn/string/methods/anchor.js delete mode 100644 library/fn/string/methods/at.js delete mode 100644 library/fn/string/methods/big.js delete mode 100644 library/fn/string/methods/blink.js delete mode 100644 library/fn/string/methods/bold.js delete mode 100644 library/fn/string/methods/code-point-at.js delete mode 100644 library/fn/string/methods/ends-with.js delete mode 100644 library/fn/string/methods/escape-html.js delete mode 100644 library/fn/string/methods/fixed.js delete mode 100644 library/fn/string/methods/fontcolor.js delete mode 100644 library/fn/string/methods/fontsize.js delete mode 100644 library/fn/string/methods/includes.js delete mode 100644 library/fn/string/methods/italics.js delete mode 100644 library/fn/string/methods/link.js delete mode 100644 library/fn/string/methods/pad-end.js delete mode 100644 library/fn/string/methods/pad-start.js delete mode 100644 library/fn/string/methods/repeat.js delete mode 100644 library/fn/string/methods/small.js delete mode 100644 library/fn/string/methods/starts-with.js delete mode 100644 library/fn/string/methods/strike.js delete mode 100644 library/fn/string/methods/sub.js delete mode 100644 library/fn/string/methods/sup.js delete mode 100644 library/fn/string/methods/trim-end.js delete mode 100644 library/fn/string/methods/trim-left.js delete mode 100644 library/fn/string/methods/trim-right.js delete mode 100644 library/fn/string/methods/trim-start.js delete mode 100644 library/fn/string/methods/trim.js delete mode 100644 library/fn/string/methods/unescape-html.js create mode 100644 library/fn/string/virtual/anchor.js create mode 100644 library/fn/string/virtual/at.js create mode 100644 library/fn/string/virtual/big.js create mode 100644 library/fn/string/virtual/blink.js create mode 100644 library/fn/string/virtual/bold.js create mode 100644 library/fn/string/virtual/code-point-at.js create mode 100644 library/fn/string/virtual/ends-with.js create mode 100644 library/fn/string/virtual/escape-html.js create mode 100644 library/fn/string/virtual/fixed.js create mode 100644 library/fn/string/virtual/fontcolor.js create mode 100644 library/fn/string/virtual/fontsize.js create mode 100644 library/fn/string/virtual/includes.js create mode 100644 library/fn/string/virtual/index.js create mode 100644 library/fn/string/virtual/italics.js rename library/fn/string/{methods => virtual}/iterator.js (100%) create mode 100644 library/fn/string/virtual/link.js create mode 100644 library/fn/string/virtual/pad-end.js create mode 100644 library/fn/string/virtual/pad-start.js create mode 100644 library/fn/string/virtual/repeat.js create mode 100644 library/fn/string/virtual/small.js create mode 100644 library/fn/string/virtual/starts-with.js create mode 100644 library/fn/string/virtual/strike.js create mode 100644 library/fn/string/virtual/sub.js create mode 100644 library/fn/string/virtual/sup.js create mode 100644 library/fn/string/virtual/trim-end.js create mode 100644 library/fn/string/virtual/trim-left.js create mode 100644 library/fn/string/virtual/trim-right.js create mode 100644 library/fn/string/virtual/trim-start.js create mode 100644 library/fn/string/virtual/trim.js create mode 100644 library/fn/string/virtual/unescape-html.js delete mode 100644 library/modules/_entry-prototype.js create mode 100644 library/modules/_entry-virtual.js delete mode 100644 modules/_entry-prototype.js create mode 100644 modules/_entry-virtual.js diff --git a/fn/array/methods/copy-within.js b/fn/array/methods/copy-within.js deleted file mode 100644 index 768108a1e447..000000000000 --- a/fn/array/methods/copy-within.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.copy-within'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'copyWithin'); \ No newline at end of file diff --git a/fn/array/methods/entries.js b/fn/array/methods/entries.js deleted file mode 100644 index 3e548ea6b9ba..000000000000 --- a/fn/array/methods/entries.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.iterator'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'entries'); \ No newline at end of file diff --git a/fn/array/methods/fill.js b/fn/array/methods/fill.js deleted file mode 100644 index df4c7c1d917d..000000000000 --- a/fn/array/methods/fill.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.fill'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'fill'); \ No newline at end of file diff --git a/fn/array/methods/find-index.js b/fn/array/methods/find-index.js deleted file mode 100644 index 19a563ac4acb..000000000000 --- a/fn/array/methods/find-index.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.find-index'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'findIndex'); \ No newline at end of file diff --git a/fn/array/methods/find.js b/fn/array/methods/find.js deleted file mode 100644 index e5bc2de00668..000000000000 --- a/fn/array/methods/find.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.find'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'find'); \ No newline at end of file diff --git a/fn/array/methods/includes.js b/fn/array/methods/includes.js deleted file mode 100644 index dc4fc44d3ab2..000000000000 --- a/fn/array/methods/includes.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.array.includes'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'includes'); \ No newline at end of file diff --git a/fn/array/methods/keys.js b/fn/array/methods/keys.js deleted file mode 100644 index c9726723693f..000000000000 --- a/fn/array/methods/keys.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.iterator'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'keys'); \ No newline at end of file diff --git a/fn/array/virtual/copy-within.js b/fn/array/virtual/copy-within.js new file mode 100644 index 000000000000..62172a9e3eec --- /dev/null +++ b/fn/array/virtual/copy-within.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.copy-within'); +module.exports = require('../../../modules/_entry-virtual')('Array').copyWithin; \ No newline at end of file diff --git a/fn/array/virtual/entries.js b/fn/array/virtual/entries.js new file mode 100644 index 000000000000..1b198e3ccc22 --- /dev/null +++ b/fn/array/virtual/entries.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.iterator'); +module.exports = require('../../../modules/_entry-virtual')('Array').entries; \ No newline at end of file diff --git a/fn/array/virtual/fill.js b/fn/array/virtual/fill.js new file mode 100644 index 000000000000..6018b37bff81 --- /dev/null +++ b/fn/array/virtual/fill.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.fill'); +module.exports = require('../../../modules/_entry-virtual')('Array').fill; \ No newline at end of file diff --git a/fn/array/virtual/find-index.js b/fn/array/virtual/find-index.js new file mode 100644 index 000000000000..ef96165fd7a7 --- /dev/null +++ b/fn/array/virtual/find-index.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.find-index'); +module.exports = require('../../../modules/_entry-virtual')('Array').findIndex; \ No newline at end of file diff --git a/fn/array/virtual/find.js b/fn/array/virtual/find.js new file mode 100644 index 000000000000..6cffee5b5d4a --- /dev/null +++ b/fn/array/virtual/find.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.find'); +module.exports = require('../../../modules/_entry-virtual')('Array').find; \ No newline at end of file diff --git a/fn/array/virtual/includes.js b/fn/array/virtual/includes.js new file mode 100644 index 000000000000..bf9031d74515 --- /dev/null +++ b/fn/array/virtual/includes.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.array.includes'); +module.exports = require('../../../modules/_entry-virtual')('Array').includes; \ No newline at end of file diff --git a/fn/array/virtual/index.js b/fn/array/virtual/index.js new file mode 100644 index 000000000000..11c9ed26b584 --- /dev/null +++ b/fn/array/virtual/index.js @@ -0,0 +1,8 @@ +require('../../../modules/es6.string.iterator'); +require('../../../modules/es6.array.iterator'); +require('../../../modules/es6.array.copy-within'); +require('../../../modules/es6.array.fill'); +require('../../../modules/es6.array.find'); +require('../../../modules/es6.array.find-index'); +require('../../../modules/es7.array.includes'); +module.exports = require('../../../modules/_entry-virtual')('Array'); \ No newline at end of file diff --git a/fn/array/methods/iterator.js b/fn/array/virtual/iterator.js similarity index 100% rename from fn/array/methods/iterator.js rename to fn/array/virtual/iterator.js diff --git a/fn/array/virtual/keys.js b/fn/array/virtual/keys.js new file mode 100644 index 000000000000..16c09681f39e --- /dev/null +++ b/fn/array/virtual/keys.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.iterator'); +module.exports = require('../../../modules/_entry-virtual')('Array').keys; \ No newline at end of file diff --git a/fn/array/methods/values.js b/fn/array/virtual/values.js similarity index 100% rename from fn/array/methods/values.js rename to fn/array/virtual/values.js diff --git a/fn/function/methods/part.js b/fn/function/methods/part.js deleted file mode 100644 index 945016c5128b..000000000000 --- a/fn/function/methods/part.js +++ /dev/null @@ -1,3 +0,0 @@ -require('../../../modules/core.function.part'); -var $Function = require('../../../modules/_core').Function; -module.exports = ($Function.methods || $Function.prototype).part; \ No newline at end of file diff --git a/fn/function/virtual/index.js b/fn/function/virtual/index.js new file mode 100644 index 000000000000..0cfa4b769829 --- /dev/null +++ b/fn/function/virtual/index.js @@ -0,0 +1,2 @@ +require('../../../modules/core.function.part'); +module.exports = require('../../../modules/_entry-virtual')('Function'); \ No newline at end of file diff --git a/fn/function/virtual/part.js b/fn/function/virtual/part.js new file mode 100644 index 000000000000..a382e577ff20 --- /dev/null +++ b/fn/function/virtual/part.js @@ -0,0 +1,2 @@ +require('../../../modules/core.function.part'); +module.exports = require('../../../modules/_entry-virtual')('Function').part; \ No newline at end of file diff --git a/fn/number/virtual/index.js b/fn/number/virtual/index.js new file mode 100644 index 000000000000..750c01c31b5a --- /dev/null +++ b/fn/number/virtual/index.js @@ -0,0 +1,2 @@ +require('../../../modules/core.number.iterator'); +module.exports = {iterator: require('../../../modules/_iterators').Number}; \ No newline at end of file diff --git a/fn/number/methods/iterator.js b/fn/number/virtual/iterator.js similarity index 100% rename from fn/number/methods/iterator.js rename to fn/number/virtual/iterator.js diff --git a/fn/string/methods/anchor.js b/fn/string/methods/anchor.js deleted file mode 100644 index 976bde3b963d..000000000000 --- a/fn/string/methods/anchor.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.anchor'); -module.exports = require('../../../modules/_entry-prototype')('String', 'anchor'); \ No newline at end of file diff --git a/fn/string/methods/at.js b/fn/string/methods/at.js deleted file mode 100644 index 6c2601d0fef1..000000000000 --- a/fn/string/methods/at.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.at'); -module.exports = require('../../../modules/_entry-prototype')('String', 'at'); \ No newline at end of file diff --git a/fn/string/methods/big.js b/fn/string/methods/big.js deleted file mode 100644 index e748d99872c6..000000000000 --- a/fn/string/methods/big.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.big'); -module.exports = require('../../../modules/_entry-prototype')('String', 'big'); \ No newline at end of file diff --git a/fn/string/methods/blink.js b/fn/string/methods/blink.js deleted file mode 100644 index d4e3e9a37d49..000000000000 --- a/fn/string/methods/blink.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.blink'); -module.exports = require('../../../modules/_entry-prototype')('String', 'blink'); \ No newline at end of file diff --git a/fn/string/methods/bold.js b/fn/string/methods/bold.js deleted file mode 100644 index d366677acc02..000000000000 --- a/fn/string/methods/bold.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.bold'); -module.exports = require('../../../modules/_entry-prototype')('String', 'bold'); \ No newline at end of file diff --git a/fn/string/methods/code-point-at.js b/fn/string/methods/code-point-at.js deleted file mode 100644 index a562edd32aa5..000000000000 --- a/fn/string/methods/code-point-at.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.code-point-at'); -module.exports = require('../../../modules/_entry-prototype')('String', 'codePointAt'); \ No newline at end of file diff --git a/fn/string/methods/ends-with.js b/fn/string/methods/ends-with.js deleted file mode 100644 index 7100c6ec06dd..000000000000 --- a/fn/string/methods/ends-with.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.ends-with'); -module.exports = require('../../../modules/_entry-prototype')('String', 'endsWith'); \ No newline at end of file diff --git a/fn/string/methods/escape-html.js b/fn/string/methods/escape-html.js deleted file mode 100644 index e3d0ec00f493..000000000000 --- a/fn/string/methods/escape-html.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/core.string.escape-html'); -module.exports = require('../../../modules/_entry-prototype')('String', 'escapeHTML'); \ No newline at end of file diff --git a/fn/string/methods/fixed.js b/fn/string/methods/fixed.js deleted file mode 100644 index 9be822f6d149..000000000000 --- a/fn/string/methods/fixed.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.fixed'); -module.exports = require('../../../modules/_entry-prototype')('String', 'fixed'); \ No newline at end of file diff --git a/fn/string/methods/fontcolor.js b/fn/string/methods/fontcolor.js deleted file mode 100644 index c797fb058e1f..000000000000 --- a/fn/string/methods/fontcolor.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.fontcolor'); -module.exports = require('../../../modules/_entry-prototype')('String', 'fontcolor'); \ No newline at end of file diff --git a/fn/string/methods/fontsize.js b/fn/string/methods/fontsize.js deleted file mode 100644 index 30dae83ead23..000000000000 --- a/fn/string/methods/fontsize.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.fontsize'); -module.exports = require('../../../modules/_entry-prototype')('String', 'fontsize'); \ No newline at end of file diff --git a/fn/string/methods/includes.js b/fn/string/methods/includes.js deleted file mode 100644 index 9081397ba7a6..000000000000 --- a/fn/string/methods/includes.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.includes'); -module.exports = require('../../../modules/_entry-prototype')('String', 'includes'); \ No newline at end of file diff --git a/fn/string/methods/italics.js b/fn/string/methods/italics.js deleted file mode 100644 index 553f4edcbfd2..000000000000 --- a/fn/string/methods/italics.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.italics'); -module.exports = require('../../../modules/_entry-prototype')('String', 'italics'); \ No newline at end of file diff --git a/fn/string/methods/link.js b/fn/string/methods/link.js deleted file mode 100644 index 5d33845159d0..000000000000 --- a/fn/string/methods/link.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.link'); -module.exports = require('../../../modules/_entry-prototype')('String', 'link'); \ No newline at end of file diff --git a/fn/string/methods/pad-end.js b/fn/string/methods/pad-end.js deleted file mode 100644 index fd1a9152f3a7..000000000000 --- a/fn/string/methods/pad-end.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.pad-end'); -module.exports = require('../../../modules/_entry-prototype')('String', 'padEnd'); \ No newline at end of file diff --git a/fn/string/methods/pad-start.js b/fn/string/methods/pad-start.js deleted file mode 100644 index dc27cab9136a..000000000000 --- a/fn/string/methods/pad-start.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.pad-start'); -module.exports = require('../../../modules/_entry-prototype')('String', 'padStart'); \ No newline at end of file diff --git a/fn/string/methods/repeat.js b/fn/string/methods/repeat.js deleted file mode 100644 index d345859c4149..000000000000 --- a/fn/string/methods/repeat.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.repeat'); -module.exports = require('../../../modules/_entry-prototype')('String', 'repeat'); \ No newline at end of file diff --git a/fn/string/methods/small.js b/fn/string/methods/small.js deleted file mode 100644 index dddaf1801f95..000000000000 --- a/fn/string/methods/small.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.small'); -module.exports = require('../../../modules/_entry-prototype')('String', 'small'); \ No newline at end of file diff --git a/fn/string/methods/starts-with.js b/fn/string/methods/starts-with.js deleted file mode 100644 index c31fb2965707..000000000000 --- a/fn/string/methods/starts-with.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.starts-with'); -module.exports = require('../../../modules/_entry-prototype')('String', 'startsWith'); \ No newline at end of file diff --git a/fn/string/methods/strike.js b/fn/string/methods/strike.js deleted file mode 100644 index d766234c2223..000000000000 --- a/fn/string/methods/strike.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.strike'); -module.exports = require('../../../modules/_entry-prototype')('String', 'strike'); \ No newline at end of file diff --git a/fn/string/methods/sub.js b/fn/string/methods/sub.js deleted file mode 100644 index d0a8d6eac300..000000000000 --- a/fn/string/methods/sub.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.sub'); -module.exports = require('../../../modules/_entry-prototype')('String', 'sub'); \ No newline at end of file diff --git a/fn/string/methods/sup.js b/fn/string/methods/sup.js deleted file mode 100644 index f5445684109d..000000000000 --- a/fn/string/methods/sup.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.sup'); -module.exports = require('../../../modules/_entry-prototype')('String', 'sup'); \ No newline at end of file diff --git a/fn/string/methods/trim-end.js b/fn/string/methods/trim-end.js deleted file mode 100644 index 6cc0d51cf033..000000000000 --- a/fn/string/methods/trim-end.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.trim-right'); -module.exports = require('../../../modules/_entry-prototype')('String', 'trimRight'); \ No newline at end of file diff --git a/fn/string/methods/trim-left.js b/fn/string/methods/trim-left.js deleted file mode 100644 index fe550d89ad86..000000000000 --- a/fn/string/methods/trim-left.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.trim-left'); -module.exports = require('../../../modules/_entry-prototype')('String', 'trimLeft'); \ No newline at end of file diff --git a/fn/string/methods/trim-right.js b/fn/string/methods/trim-right.js deleted file mode 100644 index 6cc0d51cf033..000000000000 --- a/fn/string/methods/trim-right.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.trim-right'); -module.exports = require('../../../modules/_entry-prototype')('String', 'trimRight'); \ No newline at end of file diff --git a/fn/string/methods/trim-start.js b/fn/string/methods/trim-start.js deleted file mode 100644 index fe550d89ad86..000000000000 --- a/fn/string/methods/trim-start.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.trim-left'); -module.exports = require('../../../modules/_entry-prototype')('String', 'trimLeft'); \ No newline at end of file diff --git a/fn/string/methods/trim.js b/fn/string/methods/trim.js deleted file mode 100644 index f84a792649cd..000000000000 --- a/fn/string/methods/trim.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.trim'); -module.exports = require('../../../modules/_entry-prototype')('String', 'trim'); \ No newline at end of file diff --git a/fn/string/methods/unescape-html.js b/fn/string/methods/unescape-html.js deleted file mode 100644 index 0fd29501c9d6..000000000000 --- a/fn/string/methods/unescape-html.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/core.string.unescape-html'); -module.exports = require('../../../modules/_entry-prototype')('String', 'unescapeHTML'); \ No newline at end of file diff --git a/fn/string/virtual/anchor.js b/fn/string/virtual/anchor.js new file mode 100644 index 000000000000..6f74b7e88977 --- /dev/null +++ b/fn/string/virtual/anchor.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.anchor'); +module.exports = require('../../../modules/_entry-virtual')('String').anchor; \ No newline at end of file diff --git a/fn/string/virtual/at.js b/fn/string/virtual/at.js new file mode 100644 index 000000000000..3b9614386ae4 --- /dev/null +++ b/fn/string/virtual/at.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.at'); +module.exports = require('../../../modules/_entry-virtual')('String').at; \ No newline at end of file diff --git a/fn/string/virtual/big.js b/fn/string/virtual/big.js new file mode 100644 index 000000000000..57ac7d5de047 --- /dev/null +++ b/fn/string/virtual/big.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.big'); +module.exports = require('../../../modules/_entry-virtual')('String').big; \ No newline at end of file diff --git a/fn/string/virtual/blink.js b/fn/string/virtual/blink.js new file mode 100644 index 000000000000..5c4cea80fd60 --- /dev/null +++ b/fn/string/virtual/blink.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.blink'); +module.exports = require('../../../modules/_entry-virtual')('String').blink; \ No newline at end of file diff --git a/fn/string/virtual/bold.js b/fn/string/virtual/bold.js new file mode 100644 index 000000000000..c566bf2d973e --- /dev/null +++ b/fn/string/virtual/bold.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.bold'); +module.exports = require('../../../modules/_entry-virtual')('String').bold; \ No newline at end of file diff --git a/fn/string/virtual/code-point-at.js b/fn/string/virtual/code-point-at.js new file mode 100644 index 000000000000..873752191e20 --- /dev/null +++ b/fn/string/virtual/code-point-at.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.code-point-at'); +module.exports = require('../../../modules/_entry-virtual')('String').codePointAt; \ No newline at end of file diff --git a/fn/string/virtual/ends-with.js b/fn/string/virtual/ends-with.js new file mode 100644 index 000000000000..90bc6e79e969 --- /dev/null +++ b/fn/string/virtual/ends-with.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.ends-with'); +module.exports = require('../../../modules/_entry-virtual')('String').endsWith; \ No newline at end of file diff --git a/fn/string/virtual/escape-html.js b/fn/string/virtual/escape-html.js new file mode 100644 index 000000000000..3342bcec98af --- /dev/null +++ b/fn/string/virtual/escape-html.js @@ -0,0 +1,2 @@ +require('../../../modules/core.string.escape-html'); +module.exports = require('../../../modules/_entry-virtual')('String').escapeHTML; \ No newline at end of file diff --git a/fn/string/virtual/fixed.js b/fn/string/virtual/fixed.js new file mode 100644 index 000000000000..e830654f2640 --- /dev/null +++ b/fn/string/virtual/fixed.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.fixed'); +module.exports = require('../../../modules/_entry-virtual')('String').fixed; \ No newline at end of file diff --git a/fn/string/virtual/fontcolor.js b/fn/string/virtual/fontcolor.js new file mode 100644 index 000000000000..cfb9b2c0942d --- /dev/null +++ b/fn/string/virtual/fontcolor.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.fontcolor'); +module.exports = require('../../../modules/_entry-virtual')('String').fontcolor; \ No newline at end of file diff --git a/fn/string/virtual/fontsize.js b/fn/string/virtual/fontsize.js new file mode 100644 index 000000000000..de8f5161a443 --- /dev/null +++ b/fn/string/virtual/fontsize.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.fontsize'); +module.exports = require('../../../modules/_entry-virtual')('String').fontsize; \ No newline at end of file diff --git a/fn/string/virtual/includes.js b/fn/string/virtual/includes.js new file mode 100644 index 000000000000..1e4793d67b9f --- /dev/null +++ b/fn/string/virtual/includes.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.includes'); +module.exports = require('../../../modules/_entry-virtual')('String').includes; \ No newline at end of file diff --git a/fn/string/virtual/index.js b/fn/string/virtual/index.js new file mode 100644 index 000000000000..0c3312ddfb16 --- /dev/null +++ b/fn/string/virtual/index.js @@ -0,0 +1,32 @@ +require('../../../modules/es6.string.trim'); +require('../../../modules/es6.string.iterator'); +require('../../../modules/es6.string.code-point-at'); +require('../../../modules/es6.string.ends-with'); +require('../../../modules/es6.string.includes'); +require('../../../modules/es6.string.repeat'); +require('../../../modules/es6.string.starts-with'); +require('../../../modules/es6.regexp.match'); +require('../../../modules/es6.regexp.replace'); +require('../../../modules/es6.regexp.search'); +require('../../../modules/es6.regexp.split'); +require('../../../modules/es6.string.anchor'); +require('../../../modules/es6.string.big'); +require('../../../modules/es6.string.blink'); +require('../../../modules/es6.string.bold'); +require('../../../modules/es6.string.fixed'); +require('../../../modules/es6.string.fontcolor'); +require('../../../modules/es6.string.fontsize'); +require('../../../modules/es6.string.italics'); +require('../../../modules/es6.string.link'); +require('../../../modules/es6.string.small'); +require('../../../modules/es6.string.strike'); +require('../../../modules/es6.string.sub'); +require('../../../modules/es6.string.sup'); +require('../../../modules/es7.string.at'); +require('../../../modules/es7.string.pad-start'); +require('../../../modules/es7.string.pad-end'); +require('../../../modules/es7.string.trim-left'); +require('../../../modules/es7.string.trim-right'); +require('../../../modules/core.string.escape-html'); +require('../../../modules/core.string.unescape-html'); +module.exports = require('../../../modules/_entry-virtual')('String'); diff --git a/fn/string/virtual/italics.js b/fn/string/virtual/italics.js new file mode 100644 index 000000000000..f8f1d3381ad0 --- /dev/null +++ b/fn/string/virtual/italics.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.italics'); +module.exports = require('../../../modules/_entry-virtual')('String').italics; \ No newline at end of file diff --git a/fn/string/methods/iterator.js b/fn/string/virtual/iterator.js similarity index 100% rename from fn/string/methods/iterator.js rename to fn/string/virtual/iterator.js diff --git a/fn/string/virtual/link.js b/fn/string/virtual/link.js new file mode 100644 index 000000000000..4b2eea8a58b1 --- /dev/null +++ b/fn/string/virtual/link.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.link'); +module.exports = require('../../../modules/_entry-virtual')('String').link; \ No newline at end of file diff --git a/fn/string/virtual/pad-end.js b/fn/string/virtual/pad-end.js new file mode 100644 index 000000000000..81e5ac046354 --- /dev/null +++ b/fn/string/virtual/pad-end.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.pad-end'); +module.exports = require('../../../modules/_entry-virtual')('String').padEnd; \ No newline at end of file diff --git a/fn/string/virtual/pad-start.js b/fn/string/virtual/pad-start.js new file mode 100644 index 000000000000..54cf3a59be43 --- /dev/null +++ b/fn/string/virtual/pad-start.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.pad-start'); +module.exports = require('../../../modules/_entry-virtual')('String').padStart; \ No newline at end of file diff --git a/fn/string/virtual/repeat.js b/fn/string/virtual/repeat.js new file mode 100644 index 000000000000..d08cf6a5ec74 --- /dev/null +++ b/fn/string/virtual/repeat.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.repeat'); +module.exports = require('../../../modules/_entry-virtual')('String').repeat; \ No newline at end of file diff --git a/fn/string/virtual/small.js b/fn/string/virtual/small.js new file mode 100644 index 000000000000..201bf9b6aaa1 --- /dev/null +++ b/fn/string/virtual/small.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.small'); +module.exports = require('../../../modules/_entry-virtual')('String').small; \ No newline at end of file diff --git a/fn/string/virtual/starts-with.js b/fn/string/virtual/starts-with.js new file mode 100644 index 000000000000..f8897d15345e --- /dev/null +++ b/fn/string/virtual/starts-with.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.starts-with'); +module.exports = require('../../../modules/_entry-virtual')('String').startsWith; \ No newline at end of file diff --git a/fn/string/virtual/strike.js b/fn/string/virtual/strike.js new file mode 100644 index 000000000000..4572db91567b --- /dev/null +++ b/fn/string/virtual/strike.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.strike'); +module.exports = require('../../../modules/_entry-virtual')('String').strike; \ No newline at end of file diff --git a/fn/string/virtual/sub.js b/fn/string/virtual/sub.js new file mode 100644 index 000000000000..a13611ecce33 --- /dev/null +++ b/fn/string/virtual/sub.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.sub'); +module.exports = require('../../../modules/_entry-virtual')('String').sub; \ No newline at end of file diff --git a/fn/string/virtual/sup.js b/fn/string/virtual/sup.js new file mode 100644 index 000000000000..07695329c755 --- /dev/null +++ b/fn/string/virtual/sup.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.sup'); +module.exports = require('../../../modules/_entry-virtual')('String').sup; \ No newline at end of file diff --git a/fn/string/virtual/trim-end.js b/fn/string/virtual/trim-end.js new file mode 100644 index 000000000000..14c25ac84bf1 --- /dev/null +++ b/fn/string/virtual/trim-end.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.trim-right'); +module.exports = require('../../../modules/_entry-virtual')('String').trimRight; \ No newline at end of file diff --git a/fn/string/virtual/trim-left.js b/fn/string/virtual/trim-left.js new file mode 100644 index 000000000000..aabcfb3f365b --- /dev/null +++ b/fn/string/virtual/trim-left.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.trim-left'); +module.exports = require('../../../modules/_entry-virtual')('String').trimLeft; \ No newline at end of file diff --git a/fn/string/virtual/trim-right.js b/fn/string/virtual/trim-right.js new file mode 100644 index 000000000000..14c25ac84bf1 --- /dev/null +++ b/fn/string/virtual/trim-right.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.trim-right'); +module.exports = require('../../../modules/_entry-virtual')('String').trimRight; \ No newline at end of file diff --git a/fn/string/virtual/trim-start.js b/fn/string/virtual/trim-start.js new file mode 100644 index 000000000000..aabcfb3f365b --- /dev/null +++ b/fn/string/virtual/trim-start.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.trim-left'); +module.exports = require('../../../modules/_entry-virtual')('String').trimLeft; \ No newline at end of file diff --git a/fn/string/virtual/trim.js b/fn/string/virtual/trim.js new file mode 100644 index 000000000000..23fbcbc506b6 --- /dev/null +++ b/fn/string/virtual/trim.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.trim'); +module.exports = require('../../../modules/_entry-virtual')('String').trim; \ No newline at end of file diff --git a/fn/string/virtual/unescape-html.js b/fn/string/virtual/unescape-html.js new file mode 100644 index 000000000000..51eb59fc5013 --- /dev/null +++ b/fn/string/virtual/unescape-html.js @@ -0,0 +1,2 @@ +require('../../../modules/core.string.unescape-html'); +module.exports = require('../../../modules/_entry-virtual')('String').unescapeHTML; \ No newline at end of file diff --git a/library/fn/array/methods/copy-within.js b/library/fn/array/methods/copy-within.js deleted file mode 100644 index 768108a1e447..000000000000 --- a/library/fn/array/methods/copy-within.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.copy-within'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'copyWithin'); \ No newline at end of file diff --git a/library/fn/array/methods/entries.js b/library/fn/array/methods/entries.js deleted file mode 100644 index 3e548ea6b9ba..000000000000 --- a/library/fn/array/methods/entries.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.iterator'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'entries'); \ No newline at end of file diff --git a/library/fn/array/methods/fill.js b/library/fn/array/methods/fill.js deleted file mode 100644 index df4c7c1d917d..000000000000 --- a/library/fn/array/methods/fill.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.fill'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'fill'); \ No newline at end of file diff --git a/library/fn/array/methods/find-index.js b/library/fn/array/methods/find-index.js deleted file mode 100644 index 19a563ac4acb..000000000000 --- a/library/fn/array/methods/find-index.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.find-index'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'findIndex'); \ No newline at end of file diff --git a/library/fn/array/methods/find.js b/library/fn/array/methods/find.js deleted file mode 100644 index e5bc2de00668..000000000000 --- a/library/fn/array/methods/find.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.find'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'find'); \ No newline at end of file diff --git a/library/fn/array/methods/includes.js b/library/fn/array/methods/includes.js deleted file mode 100644 index dc4fc44d3ab2..000000000000 --- a/library/fn/array/methods/includes.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.array.includes'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'includes'); \ No newline at end of file diff --git a/library/fn/array/methods/keys.js b/library/fn/array/methods/keys.js deleted file mode 100644 index c9726723693f..000000000000 --- a/library/fn/array/methods/keys.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.array.iterator'); -module.exports = require('../../../modules/_entry-prototype')('Array', 'keys'); \ No newline at end of file diff --git a/library/fn/array/virtual/copy-within.js b/library/fn/array/virtual/copy-within.js new file mode 100644 index 000000000000..62172a9e3eec --- /dev/null +++ b/library/fn/array/virtual/copy-within.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.copy-within'); +module.exports = require('../../../modules/_entry-virtual')('Array').copyWithin; \ No newline at end of file diff --git a/library/fn/array/virtual/entries.js b/library/fn/array/virtual/entries.js new file mode 100644 index 000000000000..1b198e3ccc22 --- /dev/null +++ b/library/fn/array/virtual/entries.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.iterator'); +module.exports = require('../../../modules/_entry-virtual')('Array').entries; \ No newline at end of file diff --git a/library/fn/array/virtual/fill.js b/library/fn/array/virtual/fill.js new file mode 100644 index 000000000000..6018b37bff81 --- /dev/null +++ b/library/fn/array/virtual/fill.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.fill'); +module.exports = require('../../../modules/_entry-virtual')('Array').fill; \ No newline at end of file diff --git a/library/fn/array/virtual/find-index.js b/library/fn/array/virtual/find-index.js new file mode 100644 index 000000000000..ef96165fd7a7 --- /dev/null +++ b/library/fn/array/virtual/find-index.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.find-index'); +module.exports = require('../../../modules/_entry-virtual')('Array').findIndex; \ No newline at end of file diff --git a/library/fn/array/virtual/find.js b/library/fn/array/virtual/find.js new file mode 100644 index 000000000000..6cffee5b5d4a --- /dev/null +++ b/library/fn/array/virtual/find.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.find'); +module.exports = require('../../../modules/_entry-virtual')('Array').find; \ No newline at end of file diff --git a/library/fn/array/virtual/includes.js b/library/fn/array/virtual/includes.js new file mode 100644 index 000000000000..bf9031d74515 --- /dev/null +++ b/library/fn/array/virtual/includes.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.array.includes'); +module.exports = require('../../../modules/_entry-virtual')('Array').includes; \ No newline at end of file diff --git a/library/fn/array/virtual/index.js b/library/fn/array/virtual/index.js new file mode 100644 index 000000000000..11c9ed26b584 --- /dev/null +++ b/library/fn/array/virtual/index.js @@ -0,0 +1,8 @@ +require('../../../modules/es6.string.iterator'); +require('../../../modules/es6.array.iterator'); +require('../../../modules/es6.array.copy-within'); +require('../../../modules/es6.array.fill'); +require('../../../modules/es6.array.find'); +require('../../../modules/es6.array.find-index'); +require('../../../modules/es7.array.includes'); +module.exports = require('../../../modules/_entry-virtual')('Array'); \ No newline at end of file diff --git a/library/fn/array/methods/iterator.js b/library/fn/array/virtual/iterator.js similarity index 100% rename from library/fn/array/methods/iterator.js rename to library/fn/array/virtual/iterator.js diff --git a/library/fn/array/virtual/keys.js b/library/fn/array/virtual/keys.js new file mode 100644 index 000000000000..16c09681f39e --- /dev/null +++ b/library/fn/array/virtual/keys.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.array.iterator'); +module.exports = require('../../../modules/_entry-virtual')('Array').keys; \ No newline at end of file diff --git a/library/fn/array/methods/values.js b/library/fn/array/virtual/values.js similarity index 100% rename from library/fn/array/methods/values.js rename to library/fn/array/virtual/values.js diff --git a/library/fn/function/methods/part.js b/library/fn/function/methods/part.js deleted file mode 100644 index 945016c5128b..000000000000 --- a/library/fn/function/methods/part.js +++ /dev/null @@ -1,3 +0,0 @@ -require('../../../modules/core.function.part'); -var $Function = require('../../../modules/_core').Function; -module.exports = ($Function.methods || $Function.prototype).part; \ No newline at end of file diff --git a/library/fn/function/virtual/index.js b/library/fn/function/virtual/index.js new file mode 100644 index 000000000000..0cfa4b769829 --- /dev/null +++ b/library/fn/function/virtual/index.js @@ -0,0 +1,2 @@ +require('../../../modules/core.function.part'); +module.exports = require('../../../modules/_entry-virtual')('Function'); \ No newline at end of file diff --git a/library/fn/function/virtual/part.js b/library/fn/function/virtual/part.js new file mode 100644 index 000000000000..a382e577ff20 --- /dev/null +++ b/library/fn/function/virtual/part.js @@ -0,0 +1,2 @@ +require('../../../modules/core.function.part'); +module.exports = require('../../../modules/_entry-virtual')('Function').part; \ No newline at end of file diff --git a/library/fn/number/virtual/index.js b/library/fn/number/virtual/index.js new file mode 100644 index 000000000000..750c01c31b5a --- /dev/null +++ b/library/fn/number/virtual/index.js @@ -0,0 +1,2 @@ +require('../../../modules/core.number.iterator'); +module.exports = {iterator: require('../../../modules/_iterators').Number}; \ No newline at end of file diff --git a/library/fn/number/methods/iterator.js b/library/fn/number/virtual/iterator.js similarity index 100% rename from library/fn/number/methods/iterator.js rename to library/fn/number/virtual/iterator.js diff --git a/library/fn/string/methods/anchor.js b/library/fn/string/methods/anchor.js deleted file mode 100644 index 976bde3b963d..000000000000 --- a/library/fn/string/methods/anchor.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.anchor'); -module.exports = require('../../../modules/_entry-prototype')('String', 'anchor'); \ No newline at end of file diff --git a/library/fn/string/methods/at.js b/library/fn/string/methods/at.js deleted file mode 100644 index 6c2601d0fef1..000000000000 --- a/library/fn/string/methods/at.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.at'); -module.exports = require('../../../modules/_entry-prototype')('String', 'at'); \ No newline at end of file diff --git a/library/fn/string/methods/big.js b/library/fn/string/methods/big.js deleted file mode 100644 index e748d99872c6..000000000000 --- a/library/fn/string/methods/big.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.big'); -module.exports = require('../../../modules/_entry-prototype')('String', 'big'); \ No newline at end of file diff --git a/library/fn/string/methods/blink.js b/library/fn/string/methods/blink.js deleted file mode 100644 index d4e3e9a37d49..000000000000 --- a/library/fn/string/methods/blink.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.blink'); -module.exports = require('../../../modules/_entry-prototype')('String', 'blink'); \ No newline at end of file diff --git a/library/fn/string/methods/bold.js b/library/fn/string/methods/bold.js deleted file mode 100644 index d366677acc02..000000000000 --- a/library/fn/string/methods/bold.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.bold'); -module.exports = require('../../../modules/_entry-prototype')('String', 'bold'); \ No newline at end of file diff --git a/library/fn/string/methods/code-point-at.js b/library/fn/string/methods/code-point-at.js deleted file mode 100644 index a562edd32aa5..000000000000 --- a/library/fn/string/methods/code-point-at.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.code-point-at'); -module.exports = require('../../../modules/_entry-prototype')('String', 'codePointAt'); \ No newline at end of file diff --git a/library/fn/string/methods/ends-with.js b/library/fn/string/methods/ends-with.js deleted file mode 100644 index 7100c6ec06dd..000000000000 --- a/library/fn/string/methods/ends-with.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.ends-with'); -module.exports = require('../../../modules/_entry-prototype')('String', 'endsWith'); \ No newline at end of file diff --git a/library/fn/string/methods/escape-html.js b/library/fn/string/methods/escape-html.js deleted file mode 100644 index e3d0ec00f493..000000000000 --- a/library/fn/string/methods/escape-html.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/core.string.escape-html'); -module.exports = require('../../../modules/_entry-prototype')('String', 'escapeHTML'); \ No newline at end of file diff --git a/library/fn/string/methods/fixed.js b/library/fn/string/methods/fixed.js deleted file mode 100644 index 9be822f6d149..000000000000 --- a/library/fn/string/methods/fixed.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.fixed'); -module.exports = require('../../../modules/_entry-prototype')('String', 'fixed'); \ No newline at end of file diff --git a/library/fn/string/methods/fontcolor.js b/library/fn/string/methods/fontcolor.js deleted file mode 100644 index c797fb058e1f..000000000000 --- a/library/fn/string/methods/fontcolor.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.fontcolor'); -module.exports = require('../../../modules/_entry-prototype')('String', 'fontcolor'); \ No newline at end of file diff --git a/library/fn/string/methods/fontsize.js b/library/fn/string/methods/fontsize.js deleted file mode 100644 index 30dae83ead23..000000000000 --- a/library/fn/string/methods/fontsize.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.fontsize'); -module.exports = require('../../../modules/_entry-prototype')('String', 'fontsize'); \ No newline at end of file diff --git a/library/fn/string/methods/includes.js b/library/fn/string/methods/includes.js deleted file mode 100644 index 9081397ba7a6..000000000000 --- a/library/fn/string/methods/includes.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.includes'); -module.exports = require('../../../modules/_entry-prototype')('String', 'includes'); \ No newline at end of file diff --git a/library/fn/string/methods/italics.js b/library/fn/string/methods/italics.js deleted file mode 100644 index 553f4edcbfd2..000000000000 --- a/library/fn/string/methods/italics.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.italics'); -module.exports = require('../../../modules/_entry-prototype')('String', 'italics'); \ No newline at end of file diff --git a/library/fn/string/methods/link.js b/library/fn/string/methods/link.js deleted file mode 100644 index 5d33845159d0..000000000000 --- a/library/fn/string/methods/link.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.link'); -module.exports = require('../../../modules/_entry-prototype')('String', 'link'); \ No newline at end of file diff --git a/library/fn/string/methods/pad-end.js b/library/fn/string/methods/pad-end.js deleted file mode 100644 index fd1a9152f3a7..000000000000 --- a/library/fn/string/methods/pad-end.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.pad-end'); -module.exports = require('../../../modules/_entry-prototype')('String', 'padEnd'); \ No newline at end of file diff --git a/library/fn/string/methods/pad-start.js b/library/fn/string/methods/pad-start.js deleted file mode 100644 index dc27cab9136a..000000000000 --- a/library/fn/string/methods/pad-start.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.pad-start'); -module.exports = require('../../../modules/_entry-prototype')('String', 'padStart'); \ No newline at end of file diff --git a/library/fn/string/methods/repeat.js b/library/fn/string/methods/repeat.js deleted file mode 100644 index d345859c4149..000000000000 --- a/library/fn/string/methods/repeat.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.repeat'); -module.exports = require('../../../modules/_entry-prototype')('String', 'repeat'); \ No newline at end of file diff --git a/library/fn/string/methods/small.js b/library/fn/string/methods/small.js deleted file mode 100644 index dddaf1801f95..000000000000 --- a/library/fn/string/methods/small.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.small'); -module.exports = require('../../../modules/_entry-prototype')('String', 'small'); \ No newline at end of file diff --git a/library/fn/string/methods/starts-with.js b/library/fn/string/methods/starts-with.js deleted file mode 100644 index c31fb2965707..000000000000 --- a/library/fn/string/methods/starts-with.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.starts-with'); -module.exports = require('../../../modules/_entry-prototype')('String', 'startsWith'); \ No newline at end of file diff --git a/library/fn/string/methods/strike.js b/library/fn/string/methods/strike.js deleted file mode 100644 index d766234c2223..000000000000 --- a/library/fn/string/methods/strike.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.strike'); -module.exports = require('../../../modules/_entry-prototype')('String', 'strike'); \ No newline at end of file diff --git a/library/fn/string/methods/sub.js b/library/fn/string/methods/sub.js deleted file mode 100644 index d0a8d6eac300..000000000000 --- a/library/fn/string/methods/sub.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.sub'); -module.exports = require('../../../modules/_entry-prototype')('String', 'sub'); \ No newline at end of file diff --git a/library/fn/string/methods/sup.js b/library/fn/string/methods/sup.js deleted file mode 100644 index f5445684109d..000000000000 --- a/library/fn/string/methods/sup.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.sup'); -module.exports = require('../../../modules/_entry-prototype')('String', 'sup'); \ No newline at end of file diff --git a/library/fn/string/methods/trim-end.js b/library/fn/string/methods/trim-end.js deleted file mode 100644 index 6cc0d51cf033..000000000000 --- a/library/fn/string/methods/trim-end.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.trim-right'); -module.exports = require('../../../modules/_entry-prototype')('String', 'trimRight'); \ No newline at end of file diff --git a/library/fn/string/methods/trim-left.js b/library/fn/string/methods/trim-left.js deleted file mode 100644 index fe550d89ad86..000000000000 --- a/library/fn/string/methods/trim-left.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.trim-left'); -module.exports = require('../../../modules/_entry-prototype')('String', 'trimLeft'); \ No newline at end of file diff --git a/library/fn/string/methods/trim-right.js b/library/fn/string/methods/trim-right.js deleted file mode 100644 index 6cc0d51cf033..000000000000 --- a/library/fn/string/methods/trim-right.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.trim-right'); -module.exports = require('../../../modules/_entry-prototype')('String', 'trimRight'); \ No newline at end of file diff --git a/library/fn/string/methods/trim-start.js b/library/fn/string/methods/trim-start.js deleted file mode 100644 index fe550d89ad86..000000000000 --- a/library/fn/string/methods/trim-start.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es7.string.trim-left'); -module.exports = require('../../../modules/_entry-prototype')('String', 'trimLeft'); \ No newline at end of file diff --git a/library/fn/string/methods/trim.js b/library/fn/string/methods/trim.js deleted file mode 100644 index f84a792649cd..000000000000 --- a/library/fn/string/methods/trim.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/es6.string.trim'); -module.exports = require('../../../modules/_entry-prototype')('String', 'trim'); \ No newline at end of file diff --git a/library/fn/string/methods/unescape-html.js b/library/fn/string/methods/unescape-html.js deleted file mode 100644 index 0fd29501c9d6..000000000000 --- a/library/fn/string/methods/unescape-html.js +++ /dev/null @@ -1,2 +0,0 @@ -require('../../../modules/core.string.unescape-html'); -module.exports = require('../../../modules/_entry-prototype')('String', 'unescapeHTML'); \ No newline at end of file diff --git a/library/fn/string/virtual/anchor.js b/library/fn/string/virtual/anchor.js new file mode 100644 index 000000000000..6f74b7e88977 --- /dev/null +++ b/library/fn/string/virtual/anchor.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.anchor'); +module.exports = require('../../../modules/_entry-virtual')('String').anchor; \ No newline at end of file diff --git a/library/fn/string/virtual/at.js b/library/fn/string/virtual/at.js new file mode 100644 index 000000000000..3b9614386ae4 --- /dev/null +++ b/library/fn/string/virtual/at.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.at'); +module.exports = require('../../../modules/_entry-virtual')('String').at; \ No newline at end of file diff --git a/library/fn/string/virtual/big.js b/library/fn/string/virtual/big.js new file mode 100644 index 000000000000..57ac7d5de047 --- /dev/null +++ b/library/fn/string/virtual/big.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.big'); +module.exports = require('../../../modules/_entry-virtual')('String').big; \ No newline at end of file diff --git a/library/fn/string/virtual/blink.js b/library/fn/string/virtual/blink.js new file mode 100644 index 000000000000..5c4cea80fd60 --- /dev/null +++ b/library/fn/string/virtual/blink.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.blink'); +module.exports = require('../../../modules/_entry-virtual')('String').blink; \ No newline at end of file diff --git a/library/fn/string/virtual/bold.js b/library/fn/string/virtual/bold.js new file mode 100644 index 000000000000..c566bf2d973e --- /dev/null +++ b/library/fn/string/virtual/bold.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.bold'); +module.exports = require('../../../modules/_entry-virtual')('String').bold; \ No newline at end of file diff --git a/library/fn/string/virtual/code-point-at.js b/library/fn/string/virtual/code-point-at.js new file mode 100644 index 000000000000..873752191e20 --- /dev/null +++ b/library/fn/string/virtual/code-point-at.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.code-point-at'); +module.exports = require('../../../modules/_entry-virtual')('String').codePointAt; \ No newline at end of file diff --git a/library/fn/string/virtual/ends-with.js b/library/fn/string/virtual/ends-with.js new file mode 100644 index 000000000000..90bc6e79e969 --- /dev/null +++ b/library/fn/string/virtual/ends-with.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.ends-with'); +module.exports = require('../../../modules/_entry-virtual')('String').endsWith; \ No newline at end of file diff --git a/library/fn/string/virtual/escape-html.js b/library/fn/string/virtual/escape-html.js new file mode 100644 index 000000000000..3342bcec98af --- /dev/null +++ b/library/fn/string/virtual/escape-html.js @@ -0,0 +1,2 @@ +require('../../../modules/core.string.escape-html'); +module.exports = require('../../../modules/_entry-virtual')('String').escapeHTML; \ No newline at end of file diff --git a/library/fn/string/virtual/fixed.js b/library/fn/string/virtual/fixed.js new file mode 100644 index 000000000000..e830654f2640 --- /dev/null +++ b/library/fn/string/virtual/fixed.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.fixed'); +module.exports = require('../../../modules/_entry-virtual')('String').fixed; \ No newline at end of file diff --git a/library/fn/string/virtual/fontcolor.js b/library/fn/string/virtual/fontcolor.js new file mode 100644 index 000000000000..cfb9b2c0942d --- /dev/null +++ b/library/fn/string/virtual/fontcolor.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.fontcolor'); +module.exports = require('../../../modules/_entry-virtual')('String').fontcolor; \ No newline at end of file diff --git a/library/fn/string/virtual/fontsize.js b/library/fn/string/virtual/fontsize.js new file mode 100644 index 000000000000..de8f5161a443 --- /dev/null +++ b/library/fn/string/virtual/fontsize.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.fontsize'); +module.exports = require('../../../modules/_entry-virtual')('String').fontsize; \ No newline at end of file diff --git a/library/fn/string/virtual/includes.js b/library/fn/string/virtual/includes.js new file mode 100644 index 000000000000..1e4793d67b9f --- /dev/null +++ b/library/fn/string/virtual/includes.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.includes'); +module.exports = require('../../../modules/_entry-virtual')('String').includes; \ No newline at end of file diff --git a/library/fn/string/virtual/index.js b/library/fn/string/virtual/index.js new file mode 100644 index 000000000000..0c3312ddfb16 --- /dev/null +++ b/library/fn/string/virtual/index.js @@ -0,0 +1,32 @@ +require('../../../modules/es6.string.trim'); +require('../../../modules/es6.string.iterator'); +require('../../../modules/es6.string.code-point-at'); +require('../../../modules/es6.string.ends-with'); +require('../../../modules/es6.string.includes'); +require('../../../modules/es6.string.repeat'); +require('../../../modules/es6.string.starts-with'); +require('../../../modules/es6.regexp.match'); +require('../../../modules/es6.regexp.replace'); +require('../../../modules/es6.regexp.search'); +require('../../../modules/es6.regexp.split'); +require('../../../modules/es6.string.anchor'); +require('../../../modules/es6.string.big'); +require('../../../modules/es6.string.blink'); +require('../../../modules/es6.string.bold'); +require('../../../modules/es6.string.fixed'); +require('../../../modules/es6.string.fontcolor'); +require('../../../modules/es6.string.fontsize'); +require('../../../modules/es6.string.italics'); +require('../../../modules/es6.string.link'); +require('../../../modules/es6.string.small'); +require('../../../modules/es6.string.strike'); +require('../../../modules/es6.string.sub'); +require('../../../modules/es6.string.sup'); +require('../../../modules/es7.string.at'); +require('../../../modules/es7.string.pad-start'); +require('../../../modules/es7.string.pad-end'); +require('../../../modules/es7.string.trim-left'); +require('../../../modules/es7.string.trim-right'); +require('../../../modules/core.string.escape-html'); +require('../../../modules/core.string.unescape-html'); +module.exports = require('../../../modules/_entry-virtual')('String'); diff --git a/library/fn/string/virtual/italics.js b/library/fn/string/virtual/italics.js new file mode 100644 index 000000000000..f8f1d3381ad0 --- /dev/null +++ b/library/fn/string/virtual/italics.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.italics'); +module.exports = require('../../../modules/_entry-virtual')('String').italics; \ No newline at end of file diff --git a/library/fn/string/methods/iterator.js b/library/fn/string/virtual/iterator.js similarity index 100% rename from library/fn/string/methods/iterator.js rename to library/fn/string/virtual/iterator.js diff --git a/library/fn/string/virtual/link.js b/library/fn/string/virtual/link.js new file mode 100644 index 000000000000..4b2eea8a58b1 --- /dev/null +++ b/library/fn/string/virtual/link.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.link'); +module.exports = require('../../../modules/_entry-virtual')('String').link; \ No newline at end of file diff --git a/library/fn/string/virtual/pad-end.js b/library/fn/string/virtual/pad-end.js new file mode 100644 index 000000000000..81e5ac046354 --- /dev/null +++ b/library/fn/string/virtual/pad-end.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.pad-end'); +module.exports = require('../../../modules/_entry-virtual')('String').padEnd; \ No newline at end of file diff --git a/library/fn/string/virtual/pad-start.js b/library/fn/string/virtual/pad-start.js new file mode 100644 index 000000000000..54cf3a59be43 --- /dev/null +++ b/library/fn/string/virtual/pad-start.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.pad-start'); +module.exports = require('../../../modules/_entry-virtual')('String').padStart; \ No newline at end of file diff --git a/library/fn/string/virtual/repeat.js b/library/fn/string/virtual/repeat.js new file mode 100644 index 000000000000..d08cf6a5ec74 --- /dev/null +++ b/library/fn/string/virtual/repeat.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.repeat'); +module.exports = require('../../../modules/_entry-virtual')('String').repeat; \ No newline at end of file diff --git a/library/fn/string/virtual/small.js b/library/fn/string/virtual/small.js new file mode 100644 index 000000000000..201bf9b6aaa1 --- /dev/null +++ b/library/fn/string/virtual/small.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.small'); +module.exports = require('../../../modules/_entry-virtual')('String').small; \ No newline at end of file diff --git a/library/fn/string/virtual/starts-with.js b/library/fn/string/virtual/starts-with.js new file mode 100644 index 000000000000..f8897d15345e --- /dev/null +++ b/library/fn/string/virtual/starts-with.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.starts-with'); +module.exports = require('../../../modules/_entry-virtual')('String').startsWith; \ No newline at end of file diff --git a/library/fn/string/virtual/strike.js b/library/fn/string/virtual/strike.js new file mode 100644 index 000000000000..4572db91567b --- /dev/null +++ b/library/fn/string/virtual/strike.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.strike'); +module.exports = require('../../../modules/_entry-virtual')('String').strike; \ No newline at end of file diff --git a/library/fn/string/virtual/sub.js b/library/fn/string/virtual/sub.js new file mode 100644 index 000000000000..a13611ecce33 --- /dev/null +++ b/library/fn/string/virtual/sub.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.sub'); +module.exports = require('../../../modules/_entry-virtual')('String').sub; \ No newline at end of file diff --git a/library/fn/string/virtual/sup.js b/library/fn/string/virtual/sup.js new file mode 100644 index 000000000000..07695329c755 --- /dev/null +++ b/library/fn/string/virtual/sup.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.sup'); +module.exports = require('../../../modules/_entry-virtual')('String').sup; \ No newline at end of file diff --git a/library/fn/string/virtual/trim-end.js b/library/fn/string/virtual/trim-end.js new file mode 100644 index 000000000000..14c25ac84bf1 --- /dev/null +++ b/library/fn/string/virtual/trim-end.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.trim-right'); +module.exports = require('../../../modules/_entry-virtual')('String').trimRight; \ No newline at end of file diff --git a/library/fn/string/virtual/trim-left.js b/library/fn/string/virtual/trim-left.js new file mode 100644 index 000000000000..aabcfb3f365b --- /dev/null +++ b/library/fn/string/virtual/trim-left.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.trim-left'); +module.exports = require('../../../modules/_entry-virtual')('String').trimLeft; \ No newline at end of file diff --git a/library/fn/string/virtual/trim-right.js b/library/fn/string/virtual/trim-right.js new file mode 100644 index 000000000000..14c25ac84bf1 --- /dev/null +++ b/library/fn/string/virtual/trim-right.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.trim-right'); +module.exports = require('../../../modules/_entry-virtual')('String').trimRight; \ No newline at end of file diff --git a/library/fn/string/virtual/trim-start.js b/library/fn/string/virtual/trim-start.js new file mode 100644 index 000000000000..aabcfb3f365b --- /dev/null +++ b/library/fn/string/virtual/trim-start.js @@ -0,0 +1,2 @@ +require('../../../modules/es7.string.trim-left'); +module.exports = require('../../../modules/_entry-virtual')('String').trimLeft; \ No newline at end of file diff --git a/library/fn/string/virtual/trim.js b/library/fn/string/virtual/trim.js new file mode 100644 index 000000000000..23fbcbc506b6 --- /dev/null +++ b/library/fn/string/virtual/trim.js @@ -0,0 +1,2 @@ +require('../../../modules/es6.string.trim'); +module.exports = require('../../../modules/_entry-virtual')('String').trim; \ No newline at end of file diff --git a/library/fn/string/virtual/unescape-html.js b/library/fn/string/virtual/unescape-html.js new file mode 100644 index 000000000000..51eb59fc5013 --- /dev/null +++ b/library/fn/string/virtual/unescape-html.js @@ -0,0 +1,2 @@ +require('../../../modules/core.string.unescape-html'); +module.exports = require('../../../modules/_entry-virtual')('String').unescapeHTML; \ No newline at end of file diff --git a/library/modules/_entry-prototype.js b/library/modules/_entry-prototype.js deleted file mode 100644 index 1c25cfb44e82..000000000000 --- a/library/modules/_entry-prototype.js +++ /dev/null @@ -1,5 +0,0 @@ -var core = require('./_core'); -module.exports = function(CONSTRUCTOR, METHOD){ - var C = core[CONSTRUCTOR]; - return (C.methods || C.prototype)[METHOD]; -}; \ No newline at end of file diff --git a/library/modules/_entry-virtual.js b/library/modules/_entry-virtual.js new file mode 100644 index 000000000000..0ec61272e14f --- /dev/null +++ b/library/modules/_entry-virtual.js @@ -0,0 +1,5 @@ +var core = require('./_core'); +module.exports = function(CONSTRUCTOR){ + var C = core[CONSTRUCTOR]; + return (C.virtual || C.prototype); +}; \ No newline at end of file diff --git a/library/modules/_export.js b/library/modules/_export.js index 9a461ed3914f..dc084b4cc96f 100644 --- a/library/modules/_export.js +++ b/library/modules/_export.js @@ -43,7 +43,7 @@ var $export = function(type, name, source){ })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% if(IS_PROTO){ - (exports.methods || (exports.methods = {}))[key] = out; + (exports.virtual || (exports.virtual = {}))[key] = out; // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out); } diff --git a/modules/_entry-prototype.js b/modules/_entry-prototype.js deleted file mode 100644 index 1c25cfb44e82..000000000000 --- a/modules/_entry-prototype.js +++ /dev/null @@ -1,5 +0,0 @@ -var core = require('./_core'); -module.exports = function(CONSTRUCTOR, METHOD){ - var C = core[CONSTRUCTOR]; - return (C.methods || C.prototype)[METHOD]; -}; \ No newline at end of file diff --git a/modules/_entry-virtual.js b/modules/_entry-virtual.js new file mode 100644 index 000000000000..0ec61272e14f --- /dev/null +++ b/modules/_entry-virtual.js @@ -0,0 +1,5 @@ +var core = require('./_core'); +module.exports = function(CONSTRUCTOR){ + var C = core[CONSTRUCTOR]; + return (C.virtual || C.prototype); +}; \ No newline at end of file diff --git a/modules/library/_export.js b/modules/library/_export.js index 9a461ed3914f..dc084b4cc96f 100644 --- a/modules/library/_export.js +++ b/modules/library/_export.js @@ -43,7 +43,7 @@ var $export = function(type, name, source){ })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% if(IS_PROTO){ - (exports.methods || (exports.methods = {}))[key] = out; + (exports.virtual || (exports.virtual = {}))[key] = out; // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out); } diff --git a/tests/commonjs.ls b/tests/commonjs.ls index ef103b3d60cd..c7025cac6398 100644 --- a/tests/commonjs.ls +++ b/tests/commonjs.ls @@ -26,6 +26,8 @@ for P in <[.. ../library]> ok require("#P/fn/object/make")([], {}) instanceof Array ok \isObject of require("#P/fn/object") ok require("#P/fn/function/part")(((a, b, c)-> a + b + c), 2 3)(4) is 9 + ok require("#P/fn/function/virtual/part").call(((a, b, c)-> a + b + c), 2 3)(4) is 9 + ok require("#P/fn/function/virtual").part.call(((a, b, c)-> a + b + c), 2 3)(4) is 9 require("#P/fn/function/name") require("#P/fn/function/has-instance") ok Function[require("#P/fn/symbol/has-instance")] -> @@ -41,15 +43,16 @@ for P in <[.. ../library]> ok \next of require("#P/fn/array/values")([]) ok require("#P/fn/array/includes")([1 2 3], 2) ok \next of require("#P/fn/array/iterator") [] - ok require("#P/fn/array/methods/copy-within").call([1 2 3 4 5] 0 3).0 is 4 - ok \next of require("#P/fn/array/methods/entries").call([]) - ok require("#P/fn/array/methods/fill").call(Array(5), 2).0 is 2 - ok require("#P/fn/array/methods/find").call([2 3 4], -> it % 2) is 3 - ok require("#P/fn/array/methods/find-index").call([2 3 4], -> it % 2) is 1 - ok \next of require("#P/fn/array/methods/keys").call([]) - ok \next of require("#P/fn/array/methods/values").call([]) - ok require("#P/fn/array/methods/includes").call([1 2 3], 2) - ok \next of require("#P/fn/array/methods/iterator").call [] + ok require("#P/fn/array/virtual/copy-within").call([1 2 3 4 5] 0 3).0 is 4 + ok \next of require("#P/fn/array/virtual/entries").call([]) + ok require("#P/fn/array/virtual/fill").call(Array(5), 2).0 is 2 + ok require("#P/fn/array/virtual/find").call([2 3 4], -> it % 2) is 3 + ok require("#P/fn/array/virtual/find-index").call([2 3 4], -> it % 2) is 1 + ok \next of require("#P/fn/array/virtual/keys").call([]) + ok \next of require("#P/fn/array/virtual/values").call([]) + ok require("#P/fn/array/virtual/includes").call([1 2 3], 2) + ok \next of require("#P/fn/array/virtual/iterator").call [] + ok require("#P/fn/array/virtual").includes.call([1 2 3], 2) ok \keys of require("#P/fn/array") ok require("#P/fn/math/acosh")(1) is 0 ok require("#P/fn/math/asinh")(-0) is -0 @@ -83,7 +86,8 @@ for P in <[.. ../library]> ok require("#P/fn/number/parse-float")('1.5') is 1.5 ok require("#P/fn/number/parse-int")('2.1') is 2 ok \next of require("#P/fn/number/iterator") 42 - ok \next of require("#P/fn/number/methods/iterator").call 42 + ok \next of require("#P/fn/number/virtual/iterator").call 42 + ok \next of require("#P/fn/number/virtual").iterator.call 42 ok \isNaN of require("#P/fn/number") ok require("#P/fn/reflect/apply")(((a, b)-> a + b), null, [1, 2]) is 3 ok require("#P/fn/reflect/construct")(-> @a = 2).a is 2 @@ -132,34 +136,35 @@ for P in <[.. ../library]> ok require("#P/fn/string/escape-html")('
') is '<br />' ok require("#P/fn/string/unescape-html")('<br />') is '
' ok \next of require("#P/fn/string/iterator") \qwe - ok require("#P/fn/string/methods/code-point-at").call(\a 0) is 97 - ok require("#P/fn/string/methods/ends-with").call \qwe, \we - ok require("#P/fn/string/methods/includes").call \qwe, \w - ok require("#P/fn/string/methods/repeat").call(\q 3) is \qqq - ok require("#P/fn/string/methods/starts-with").call \qwe, \qw - ok typeof require("#P/fn/string/methods/anchor") is \function - ok typeof require("#P/fn/string/methods/big") is \function - ok typeof require("#P/fn/string/methods/blink") is \function - ok typeof require("#P/fn/string/methods/bold") is \function - ok typeof require("#P/fn/string/methods/fixed") is \function - ok typeof require("#P/fn/string/methods/fontcolor") is \function - ok typeof require("#P/fn/string/methods/fontsize") is \function - ok typeof require("#P/fn/string/methods/italics") is \function - ok typeof require("#P/fn/string/methods/link") is \function - ok typeof require("#P/fn/string/methods/small") is \function - ok typeof require("#P/fn/string/methods/strike") is \function - ok typeof require("#P/fn/string/methods/sub") is \function - ok typeof require("#P/fn/string/methods/sup") is \function - ok require("#P/fn/string/methods/at").call(\a 0) is \a - ok require("#P/fn/string/methods/pad-start").call(\a 3) is ' a' - ok require("#P/fn/string/methods/pad-end").call(\a 3) is 'a ' - ok require("#P/fn/string/methods/trim-start").call(' a ') is 'a ' - ok require("#P/fn/string/methods/trim-end").call(' a ') is ' a' - ok require("#P/fn/string/methods/trim-left").call(' a ') is 'a ' - ok require("#P/fn/string/methods/trim-right").call(' a ') is ' a' - ok require("#P/fn/string/methods/escape-html").call('
') is '<br />' - ok require("#P/fn/string/methods/unescape-html").call('<br />') is '
' - ok \next of require("#P/fn/string/methods/iterator").call \qwe + ok require("#P/fn/string/virtual/code-point-at").call(\a 0) is 97 + ok require("#P/fn/string/virtual/ends-with").call \qwe, \we + ok require("#P/fn/string/virtual/includes").call \qwe, \w + ok require("#P/fn/string/virtual/repeat").call(\q 3) is \qqq + ok require("#P/fn/string/virtual/starts-with").call \qwe, \qw + ok typeof require("#P/fn/string/virtual/anchor") is \function + ok typeof require("#P/fn/string/virtual/big") is \function + ok typeof require("#P/fn/string/virtual/blink") is \function + ok typeof require("#P/fn/string/virtual/bold") is \function + ok typeof require("#P/fn/string/virtual/fixed") is \function + ok typeof require("#P/fn/string/virtual/fontcolor") is \function + ok typeof require("#P/fn/string/virtual/fontsize") is \function + ok typeof require("#P/fn/string/virtual/italics") is \function + ok typeof require("#P/fn/string/virtual/link") is \function + ok typeof require("#P/fn/string/virtual/small") is \function + ok typeof require("#P/fn/string/virtual/strike") is \function + ok typeof require("#P/fn/string/virtual/sub") is \function + ok typeof require("#P/fn/string/virtual/sup") is \function + ok require("#P/fn/string/virtual/at").call(\a 0) is \a + ok require("#P/fn/string/virtual/pad-start").call(\a 3) is ' a' + ok require("#P/fn/string/virtual/pad-end").call(\a 3) is 'a ' + ok require("#P/fn/string/virtual/trim-start").call(' a ') is 'a ' + ok require("#P/fn/string/virtual/trim-end").call(' a ') is ' a' + ok require("#P/fn/string/virtual/trim-left").call(' a ') is 'a ' + ok require("#P/fn/string/virtual/trim-right").call(' a ') is ' a' + ok require("#P/fn/string/virtual/escape-html").call('
') is '<br />' + ok require("#P/fn/string/virtual/unescape-html").call('<br />') is '
' + ok require("#P/fn/string/virtual").unescapeHTML.call('<br />') is '
' + ok \next of require("#P/fn/string/virtual/iterator").call \qwe ok \raw of require("#P/fn/string") ok require("#P/fn/regexp/constructor")(\a \g) + '' is '/a/g' ok require("#P/fn/regexp/flags")(/./g) is \g