Improve missing JS engine error message
This commit is contained in:
parent
547454684e
commit
d8b3b4e474
2 changed files with 5 additions and 4 deletions
|
|
@ -8,9 +8,10 @@
|
|||
<h1>SWIG and Javascript</h1>
|
||||
<p>This chapter describes SWIG's support of Javascript. It does not cover SWIG basics, but only information that is specific to this module.</p>
|
||||
<h2>Overview</h2>
|
||||
<p>JavaScript is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. Its arguably the most popular language for web development. Beyond of being a browser-based scripting language, with <a href="http://nodejs.org">node.js</a> Javascript has found its way to a backend development language, too.</p>
|
||||
<p>Native Javascript extensions can be used for applications that embed a web-browser view or that embed a Javascript engine (such as <em>node.js</em>). Extending a general purpose web-browser is not possible as this would be severe security issue.</p>
|
||||
<p>SWIG Javasript currently supports <strong>JavascriptCore</strong>, the Javascript engine used by <code>Safari/Webkit</code>, and <strong>v8</strong>, which is used by <code>Chromium</code> and <code>node.js</code>.</p>
|
||||
<p>Javascript is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. Its arguably the most popular language for web development.
|
||||
Javascript has gone beyond being a browser-based scripting language and with <a href="http://nodejs.org">node.js</a>, it is also used as a backend development language.</p>
|
||||
<p>Native Javascript extensions can be used for applications that embed a web-browser view or that embed a Javascript engine (such as <em>node.js</em>). Extending a general purpose web-browser is not possible as this would be a severe security issue.</p>
|
||||
<p>SWIG Javascript currently supports <strong>JavascriptCore</strong>, the Javascript engine used by <code>Safari/Webkit</code>, and <strong>v8</strong>, which is used by <code>Chromium</code> and <code>node.js</code>.</p>
|
||||
<p><a href="http://www.webkit.org/">WebKit</a> is a modern browser implementation available as open-source which can be embedded into an application.</p>
|
||||
<h2>Preliminaries</h2>
|
||||
<h3>Running SWIG</h3>
|
||||
|
|
|
|||
|
|
@ -551,7 +551,7 @@ void JAVASCRIPT::main(int argc, char *argv[]) {
|
|||
}
|
||||
default:
|
||||
{
|
||||
Printf(stderr, "SWIG Javascript: Unknown emitter type.\n");
|
||||
Printf(stderr, "SWIG Javascript: Unknown emitter type. Please specify one of -jsc -v8 or -node.\n");
|
||||
SWIG_exit(-1);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue