summaryrefslogtreecommitdiff
path: root/js/lib/from-code-point.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-12 08:45:35 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-12 08:45:35 -0800
commit4bd3ce58851b0cd332b9d46d56e4e42795636984 (patch)
tree735a76901dec623d9577ccfa45785ff57b86a50a /js/lib/from-code-point.js
parentf846824b17c83092fcb1e5dd92d3e931c39e76ef (diff)
Moved "use strict" to top of modules.
Diffstat (limited to 'js/lib/from-code-point.js')
-rw-r--r--js/lib/from-code-point.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/from-code-point.js b/js/lib/from-code-point.js
index 69f53a2..a0557b3 100644
--- a/js/lib/from-code-point.js
+++ b/js/lib/from-code-point.js
@@ -1,8 +1,9 @@
+"use strict";
+
// derived from https://github.com/mathiasbynens/String.fromCodePoint
/*! http://mths.be/fromcodepoint v0.2.1 by @mathias */
if (String.fromCodePoint) {
module.exports = function (_) {
- "use strict";
try {
return String.fromCodePoint(_);
} catch (e) {
@@ -18,7 +19,6 @@ if (String.fromCodePoint) {
var stringFromCharCode = String.fromCharCode;
var floor = Math.floor;
var fromCodePoint = function() {
- "use strict";
var MAX_SIZE = 0x4000;
var codeUnits = [];
var highSurrogate;