Browse Source

Merge branch 'fix-guide-errthrow-typo'

pull/85/head
Sami Vaarala 10 years ago
parent
commit
33c75e6777
  1. 2
      website/guide/errorobjects.html

2
website/guide/errorobjects.html

@ -171,7 +171,7 @@ an error can be re-thrown multiple times.</p>
<p>For example, to add a throw timestamp (recording the first time the object
has been thrown) to errors:</p>
<pre class="ecmascript-code">
Duktape.errCreate = function (e) {
Duktape.errThrow = function (e) {
if (!(e instanceof Error)) {
// refuse to touch anything but Error instances
return e;

Loading…
Cancel
Save