aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/javascript/referencje/obiekty/error/columnnumber/index.html
blob: dbf51b3bf36928f7b4c08a9590fa6928bf51b7f7 (plain)
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
---
title: Error.prototype.columnNumber
slug: Web/JavaScript/Referencje/Obiekty/Error/columnNumber
translation_of: Web/JavaScript/Reference/Global_Objects/Error/columnNumber
---
<div>{{JSRef}} {{non-standard_header}}</div>

<p>The <code><strong>columnNumber</strong></code> property contains the column number in the line of the file that raised this error.</p>

<h2 id="Examples">Examples</h2>

<h3 id="Using_columnNumber">Using <code>columnNumber</code></h3>

<pre class="brush: js">var e = new Error('Could not parse input');
throw e;
console.log(e.columnNumber) // 0
</pre>

<h2 id="Specifications">Specifications</h2>

<p>Not part of any specification. Non-standard.</p>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Chrome for Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{jsxref("Error.prototype.stack")}} {{non-standard_inline}}</li>
 <li>{{jsxref("Error.prototype.lineNumber")}} {{non-standard_inline}}</li>
 <li>{{jsxref("Error.prototype.fileName")}} {{non-standard_inline}}</li>
</ul>