summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/string/from-code-point/shim.js
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-01-26 17:21:26 +0100
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2017-01-30 14:47:24 -0500
commitafb7c1bac87d943a9ca6422c7100e0e3fe291740 (patch)
tree1ce1f8214473a200de9de52989c1ec8aad8ddf89 /deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/string/from-code-point/shim.js
parent5de3cf099cd01c84d1809dab90c041b76aa58d8e (diff)
downloadandroid-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.tar.gz
android-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.tar.bz2
android-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.zip
deps: upgrade npm to 4.1.2
PR-URL: https://github.com/nodejs/node/pull/11020 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/string/from-code-point/shim.js')
-rw-r--r--deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/string/from-code-point/shim.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/string/from-code-point/shim.js b/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/string/from-code-point/shim.js
deleted file mode 100644
index 41fd7378f8..0000000000
--- a/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/string/from-code-point/shim.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// Based on:
-// http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/
-// and:
-// https://github.com/mathiasbynens/String.fromCodePoint/blob/master
-// /fromcodepoint.js
-
-'use strict';
-
-var floor = Math.floor, fromCharCode = String.fromCharCode;
-
-module.exports = function (codePoint/*, …codePoints*/) {
- var chars = [], l = arguments.length, i, c, result = '';
- for (i = 0; i < l; ++i) {
- c = Number(arguments[i]);
- if (!isFinite(c) || c < 0 || c > 0x10FFFF || floor(c) !== c) {
- throw new RangeError("Invalid code point " + c);
- }
-
- if (c < 0x10000) {
- chars.push(c);
- } else {
- c -= 0x10000;
- chars.push((c >> 10) + 0xD800, (c % 0x400) + 0xDC00);
- }
- if (i + 1 !== l && chars.length <= 0x4000) continue;
- result += fromCharCode.apply(null, chars);
- chars.length = 0;
- }
- return result;
-};