UNPKG

388 BJavaScriptView Raw
1// Copyright 2014 Simon Lydell
2// X11 (“MIT”) Licensed. (See LICENSE.)
3
4function u(url) {
5 return "code\n/*# sourceMappingURL=" + url + " */"
6}
7
8function read(x) {
9 return function() {
10 return x
11 }
12}
13
14function Throws(x) {
15 throw new Error(x)
16}
17
18function identity(x) {
19 return x
20}
21
22module.exports = {
23 u: u,
24 read: read,
25 Throws: Throws,
26 identity: identity
27}