aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/javascript/reference/global_objects/evalerror/index.html
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-08-03 08:03:09 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-09-03 08:08:25 +0200
commit844f5103992238c0c23203286dad16a466e89c97 (patch)
treed537708951bb2b61be8192ffacc05a0ce6804f89 /files/fr/web/javascript/reference/global_objects/evalerror/index.html
parenta70fd5b73ecb10bec3906640023e2a1a46e118a2 (diff)
downloadtranslated-content-844f5103992238c0c23203286dad16a466e89c97.tar.gz
translated-content-844f5103992238c0c23203286dad16a466e89c97.tar.bz2
translated-content-844f5103992238c0c23203286dad16a466e89c97.zip
move *.html to *.md
Diffstat (limited to 'files/fr/web/javascript/reference/global_objects/evalerror/index.html')
-rw-r--r--files/fr/web/javascript/reference/global_objects/evalerror/index.html115
1 files changed, 0 insertions, 115 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/evalerror/index.html b/files/fr/web/javascript/reference/global_objects/evalerror/index.html
deleted file mode 100644
index 402a26e026..0000000000
--- a/files/fr/web/javascript/reference/global_objects/evalerror/index.html
+++ /dev/null
@@ -1,115 +0,0 @@
----
-title: EvalError
-slug: Web/JavaScript/Reference/Global_Objects/EvalError
-tags:
- - Error
- - EvalError
- - JavaScript
- - Reference
-translation_of: Web/JavaScript/Reference/Global_Objects/EvalError
-original_slug: Web/JavaScript/Reference/Objets_globaux/EvalError
----
-<div>{{JSRef}}</div>
-
-<p>L'objet <strong><code>EvalError</code></strong> indique une erreur concernant la fonction globale {{jsxref("Objets_globaux/eval","eval()")}}. Cette exception n'est plus levée par JavaScript mais l'objet <code>EvalError</code> est conservé pour des raisons de compatibilité.</p>
-
-<h2 id="Syntaxe">Syntaxe</h2>
-
-<pre class="syntaxbox">new EvalError([<var>message</var>[, nomFichier[, numeroLigne]]])</pre>
-
-<h3 id="Paramètres">Paramètres</h3>
-
-<dl>
- <dt><code>message</code></dt>
- <dd>Paramètre optionnel, une description compréhensible de l'erreur</dd>
- <dt><code>nomFichier</code> {{Non-standard_inline}}</dt>
- <dd>Paramètre optionnel, le nom du fichier qui contient le code à l'origine de l'exception</dd>
- <dt><code>numeroLigne</code> {{Non-standard_inline}}</dt>
- <dd>Paramètre optionnel, le numéro de la ligne du code qui a entrainé l'exception</dd>
-</dl>
-
-<h2 id="Propriétés">Propriétés</h2>
-
-<dl>
- <dt>{{jsxref("EvalError.prototype")}}</dt>
- <dd>Cette propriété permet l'addition de propriétés à un objet <code>EvalError</code>.</dd>
-</dl>
-
-<h2 id="Méthodes">Méthodes</h2>
-
-<p>L'objet global <code>EvalError</code> ne contient pas de méthodes propres. En revanche, il hérite de certaines méthodes via sa chaîne de prototypes.</p>
-
-<h2 id="Instances_de_EvalError">Instances de <code>EvalError</code></h2>
-
-<h3 id="Propriétés_2">Propriétés</h3>
-
-<div>{{page('/fr/docs/Web/JavaScript/Reference/Objets_globaux/EvalError/prototype','Properties')}}</div>
-
-<h3 id="Méthodes_2">Méthodes</h3>
-
-<div>{{page('/fr/docs/Web/JavaScript/Reference/Objets_globaux/EvalError/prototype','Methods')}}</div>
-
-<h2 id="Exemples">Exemples</h2>
-
-<p><code>EvalError</code> n'est pas utilisée par la spécification ECMAScript actuelle et ne sera donc pas levée lors de l'exécution. Cependant, l'objet reste disponible à des fins de compatibilité avec les versions antérieures de la spécification.</p>
-
-<h3 id="Créer_une_exception_EvalError">Créer une exception <code>EvalError</code></h3>
-
-<pre class="brush: js">try {
- throw new EvalError("Coucou", "unFichier.js", 10);
-} catch (e) {
- console.log(e instanceof EvalError); // true
- console.log(e.message); // "Coucou"
- console.log(e.name); // "EvalError"
- console.log(e.fileName); // "unFichier.js"
- console.log(e.lineNumber); // 10
- console.log(e.columnNumber); // 0
- console.log(e.stack); // "@Scratchpad/2:2:9\n"
-}</pre>
-
-<h2 id="Spécifications">Spécifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Spécification</th>
- <th scope="col">Statut</th>
- <th scope="col">Commentaires</th>
- </tr>
- <tr>
- <td>{{SpecName('ES3')}}</td>
- <td>{{Spec2('ES3')}}</td>
- <td>Définition initiale</td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-15.11.6.1', 'EvalError')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td>Non utilisé dans cette spécificaition. Présent à des fins de rétrocompatibilité.</td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-native-error-types-used-in-this-standard-evalerror', 'EvalError')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td>Non utilisé dans cette spécificaition. Présent à des fins de rétrocompatibilité.</td>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-native-error-types-used-in-this-standard-evalerror', 'EvalError')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
-
-<div>
-
-<p>{{Compat("javascript.builtins.EvalError")}}</p>
-</div>
-
-<h2 id="Voir_aussi">Voir aussi</h2>
-
-<ul>
- <li>{{jsxref("Error")}}</li>
- <li>{{jsxref("EvalError.prototype")}}</li>
- <li>{{jsxref("Objets_globaux/eval", "eval()")}}</li>
-</ul>