/
RangeError.cljs
190 lines (130 loc) · 4.86 KB
/
RangeError.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
(ns js.RangeError
"The RangeError object indicates an error when a value is not
the set or range of allowed values."
(:refer-clojure :exclude [name]))
(defn to-source
"Method.
[Non Standard]
The toSource() method returns code that could eval to the same
`e.toSource()`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/toSource`"
[this ]
(-> this (.toSource)))
(defn to-string
"Method.
The toString() method returns a string representing the specified
object.
`e.toString()`
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/toString`"
[this ]
(-> this (.toString)))
(defn prototype
"Property.
The RangeError.prototype property represents the prototype the
constructor.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError/prototype`"
[this]
(-> this (.-prototype)))
(defn set-prototype!
"Property.
The RangeError.prototype property represents the prototype the
constructor.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError/prototype`"
[this val]
(aset this "prototype" val))
(defn column-number
"Property.
[Non Standard]
The columnNumber property contains the column number in the line
the file that raised this error.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/columnNumber`"
[this]
(-> this (.-columnNumber)))
(defn set-column-number!
"Property.
[Non Standard]
The columnNumber property contains the column number in the line
the file that raised this error.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/columnNumber`"
[this val]
(aset this "columnNumber" val))
(defn file-name
"Property.
[Non Standard]
The fileName property contains the path to the file that raised
error.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/fileName`"
[this]
(-> this (.-fileName)))
(defn set-file-name!
"Property.
[Non Standard]
The fileName property contains the path to the file that raised
error.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/fileName`"
[this val]
(aset this "fileName" val))
(defn line-number
"Property.
[Non Standard]
The lineNumber property contains the line number in the file
raised this error.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/lineNumber`"
[this]
(-> this (.-lineNumber)))
(defn set-line-number!
"Property.
[Non Standard]
The lineNumber property contains the line number in the file
raised this error.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/lineNumber`"
[this val]
(aset this "lineNumber" val))
(defn message
"Property.
The message property is a human-readable description of the error.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/message`"
[this]
(-> this (.-message)))
(defn set-message!
"Property.
The message property is a human-readable description of the error.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/message`"
[this val]
(aset this "message" val))
(defn name
"Property.
The name property represents a name for the type of error. The
value is \\\"Error\\\".
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/name`"
[this]
(-> this (.-name)))
(defn set-name!
"Property.
The name property represents a name for the type of error. The
value is \\\"Error\\\".
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/name`"
[this val]
(aset this "name" val))
(defn stack
"Property.
[Non Standard]
The non-standard stack property of `js.Error` objects offer a
of which functions were called, in what order, from which line
file, and with what arguments. The stack string proceeds from
most recent calls to earlier ones, leading back to the original
scope call.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Stack`"
[this]
(-> this (.-stack)))
(defn set-stack!
"Property.
[Non Standard]
The non-standard stack property of `js.Error` objects offer a
of which functions were called, in what order, from which line
file, and with what arguments. The stack string proceeds from
most recent calls to earlier ones, leading back to the original
scope call.
See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Stack`"
[this val]
(aset this "stack" val))