@ -0,0 +1,34 @@ |
|||
// Copyright 2008 the V8 project authors. All rights reserved.
|
|||
// Redistribution and use in source and binary forms, with or without
|
|||
// modification, are permitted provided that the following conditions are
|
|||
// met:
|
|||
//
|
|||
// * Redistributions of source code must retain the above copyright
|
|||
// notice, this list of conditions and the following disclaimer.
|
|||
// * Redistributions in binary form must reproduce the above
|
|||
// copyright notice, this list of conditions and the following
|
|||
// disclaimer in the documentation and/or other materials provided
|
|||
// with the distribution.
|
|||
// * Neither the name of Google Inc. nor the names of its
|
|||
// contributors may be used to endorse or promote products derived
|
|||
// from this software without specific prior written permission.
|
|||
//
|
|||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|||
var x = 0; |
|||
execScript('x = 1', 'javascript'); |
|||
assertEquals(1, x); |
|||
|
|||
execScript('x = 2', 'JavaScript'); |
|||
assertEquals(2, x); |
|||
|
@ -0,0 +1,33 @@ |
|||
// Copyright 2008 the V8 project authors. All rights reserved.
|
|||
// Redistribution and use in source and binary forms, with or without
|
|||
// modification, are permitted provided that the following conditions are
|
|||
// met:
|
|||
//
|
|||
// * Redistributions of source code must retain the above copyright
|
|||
// notice, this list of conditions and the following disclaimer.
|
|||
// * Redistributions in binary form must reproduce the above
|
|||
// copyright notice, this list of conditions and the following
|
|||
// disclaimer in the documentation and/or other materials provided
|
|||
// with the distribution.
|
|||
// * Neither the name of Google Inc. nor the names of its
|
|||
// contributors may be used to endorse or promote products derived
|
|||
// from this software without specific prior written permission.
|
|||
//
|
|||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|||
// Make sure that 'this' is bound to the global object when using
|
|||
// execScript.
|
|||
|
|||
var result; |
|||
execScript("result = this"); |
|||
assertTrue(result === this); |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 5.4 KiB |
@ -0,0 +1,98 @@ |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml"><head> |
|||
<style type="text/css"> |
|||
ul { |
|||
padding: 0; |
|||
margin: 0; |
|||
} |
|||
</style> |
|||
<script type="text/javascript" src="../sh_main.js"></script> |
|||
<script type="text/javascript" src="../sh_javascript.js"></script> |
|||
<link type="image/x-icon" rel="icon" href="http://nodejs.org/favicon.ico"> |
|||
<link type="image/x-icon" rel="shortcut icon" href="../node-favicon.png"> |
|||
<link type="text/css" rel="stylesheet" href="../pipe.css"> |
|||
<link type="text/css" rel="stylesheet" href="../sh_vim-dark.css"> |
|||
<link rel="alternate" type="application/rss+xml" title="node blog" href="http://feeds.feedburner.com/nodejs/123123123"> |
|||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
|||
<title>Node.js Logos</title> |
|||
</head> |
|||
<body> |
|||
<div id="toc"> |
|||
<ol> |
|||
<li><a href="/#download">Download</a></li> |
|||
<li><a href="https://github.com/joyent/node/raw/v0.4/ChangeLog">ChangeLog</a></li> |
|||
<li><a href="/#about">About</a></li> |
|||
<li><a href="http://nodejs.org/docs/v0.4.9/api">v0.4.9 docs</a></li> |
|||
<li><a href="http://nodejs.org/docs/v0.5.0/api/">v0.5.0 docs</a></li> |
|||
<br> |
|||
<li><a href="https://github.com/joyent/node/wiki">Wiki</a></li> |
|||
<li><a href="http://blog.nodejs.org/">Blog</a></li> |
|||
<li><a href="https://github.com/joyent/node/wiki/Community">Community</a></li> |
|||
<li><a href="http://chat.nodejs.org/">Demo</a></li> |
|||
<li>Logos</li> |
|||
<li><a href="http://jobs.nodejs.org/">Jobs</a> <!-- JOBS --> </li> |
|||
</ol> |
|||
</div> |
|||
<div id="content"> |
|||
|
|||
<!-- <h1><a href="http://nodejs.org/">Node</a></h1> --> |
|||
<br /> |
|||
<br /> |
|||
<img src="../logo.png" alt="node.js" width="420" height="111" id="logo"> |
|||
<p>To echo the evolutionary nature of Node, we've added some punch and playfulness to its identity. All it needs now is a good home with you, download and have fun!</p> |
|||
<h2>Logo Downloads</h2> |
|||
<table border="0" cellspacing="0" cellpadding="10"> |
|||
<tr> |
|||
<td bgcolor="#FFFFFF"><a href="nodejs-light.eps"><img src="nodejs.png" alt="Node.js dark" width="212" height="114" border="0" /></a></td> |
|||
<td bgcolor="#46483E"><a href="nodejs-dark.eps"><img src="nodejs-dark.png" alt="Node.js dark" width="212" height="114" border="0" /></a></td> |
|||
</tr> |
|||
<tr> |
|||
<td><a href="nodejs-light.eps">Node.js standard EPS</a></td> |
|||
<td><a href="nodejs-dark.eps">Node.js reversed EPS</a></td> |
|||
</tr> |
|||
<tr> |
|||
<td bgcolor="#8BC84B"><a href="nodejs-green.eps"><img src="nodejs-green.png" alt="Node.js dark" width="212" height="114" border="0" /></a><a href="nodejs-dark.eps"></a></td> |
|||
<td bgcolor="#ffffff"><a href="nodejs-black.eps"><img src="nodejs-black.png" alt="Node.js dark" width="212" height="114" border="0" /></a></td> |
|||
</tr> |
|||
<tr> |
|||
<td><a href="nodejs-green.eps">Node.js bright EPS</a></td> |
|||
<td><a href="nodejs-black.eps">Node.js 1 color EPS</a></td> |
|||
</tr> |
|||
</table> |
|||
<h2>Desktop Background</h2> |
|||
<p><img src="monitor.png" width="525" height="398" alt="Screensavers" /></p> |
|||
<p>Select your screen resolution:<a href="nodejs-1024x768.png"><br /> |
|||
<span class="desktops">1024 x 768</span></a><span class="desktops"> | <a href="nodejs-1280x1024.png">1280 x 1024</a> | <a href="nodejs-1440x900.png">1440 x 900</a> | <a href="nodejs-1920x1200.png">1920 x 1200</a> | <a href="nodejs-2560x1440.png">2560 x 1440</a></span></p> |
|||
|
|||
<h2 id="video"> </h2> |
|||
<p></p> |
|||
|
|||
|
|||
</div> |
|||
|
|||
<div style="float: right;"></div> |
|||
|
|||
<a href="http://no.de/"><img src="../sponsored.png" height="58" width="120"></a> |
|||
|
|||
<div style="clear: both; font-size: 8pt"> |
|||
Copyright 2010 Joyent, Inc |
|||
<br> |
|||
Node.js is a trademark of Joyent, Inc. |
|||
See the <a href="http://nodejs.org/trademark-policy.pdf">trademark policy</a> |
|||
for more information. |
|||
</div> |
|||
|
|||
<script type="text/javascript"> |
|||
var gaJsHost = (("https:" == document.location.protocol) ? |
|||
"https://ssl." : "http://www."); |
|||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); |
|||
</script><script src="../ga.js" type="text/javascript"></script> |
|||
<script type="text/javascript"> |
|||
try { |
|||
var pageTracker = _gat._getTracker("UA-10874194-2"); |
|||
pageTracker._trackPageview(); |
|||
} catch(err) {}</script> |
|||
<script type="text/javascript">highlight(undefined, undefined, 'pre');</script> |
|||
|
|||
|
|||
</body></html> |
After Width: | Height: | Size: 128 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 482 KiB |
After Width: | Height: | Size: 798 KiB |
After Width: | Height: | Size: 821 KiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 2.1 MiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 3.0 KiB |
@ -1,24 +1,23 @@ |
|||
.sh_sourceCode { |
|||
|
|||
font-weight: normal; |
|||
font-style: normal; |
|||
} |
|||
|
|||
.sh_sourceCode .sh_symbol , .sh_sourceCode .sh_cbracket { |
|||
color: #fff; |
|||
} |
|||
|
|||
.sh_sourceCode .sh_keyword { |
|||
font-style: italic; |
|||
} |
|||
|
|||
.sh_sourceCode .sh_string, .sh_sourceCode .sh_regexp, .sh_sourceCode .sh_number, |
|||
.sh_sourceCode .sh_specialchar |
|||
{ |
|||
color: #B0C4DE; |
|||
} |
|||
|
|||
.sh_sourceCode .sh_comment { |
|||
color: #777; |
|||
} |
|||
|
|||
.sh_sourceCode { |
|||
|
|||
font-weight: normal; |
|||
font-style: normal; |
|||
} |
|||
|
|||
.sh_sourceCode .sh_symbol , .sh_sourceCode .sh_cbracket { |
|||
color: #fff; |
|||
} |
|||
|
|||
.sh_sourceCode .sh_keyword { |
|||
font-style: italic; |
|||
} |
|||
|
|||
.sh_sourceCode .sh_string, .sh_sourceCode .sh_regexp, .sh_sourceCode .sh_number, |
|||
.sh_sourceCode .sh_specialchar |
|||
{ |
|||
color: #B9CCC5; |
|||
} |
|||
|
|||
.sh_sourceCode .sh_comment { |
|||
color: #777; |
|||
} |
|||
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 5.2 KiB |
@ -0,0 +1,38 @@ |
|||
// Copyright Joyent, Inc. and other Node contributors.
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person obtaining a
|
|||
// copy of this software and associated documentation files (the
|
|||
// "Software"), to deal in the Software without restriction, including
|
|||
// without limitation the rights to use, copy, modify, merge, publish,
|
|||
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|||
// persons to whom the Software is furnished to do so, subject to the
|
|||
// following conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be included
|
|||
// in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|||
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|||
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|||
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|||
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
|||
var common = require('../common'); |
|||
var assert = require('assert'); |
|||
var http = require('http'); |
|||
|
|||
var server = http.createServer(function(req, res) { |
|||
res.end('Hello'); |
|||
}); |
|||
|
|||
server.listen(common.PORT, function() { |
|||
var req = http.get({port: common.PORT}, function(res) { |
|||
res.on('data', function(data) { |
|||
req.abort(); |
|||
server.close(); |
|||
}); |
|||
}); |
|||
}); |
|||
|
@ -0,0 +1,52 @@ |
|||
// Copyright Joyent, Inc. and other Node contributors.
|
|||
//
|
|||
// Permission is hereby granted, free of charge, to any person obtaining a
|
|||
// copy of this software and associated documentation files (the
|
|||
// "Software"), to deal in the Software without restriction, including
|
|||
// without limitation the rights to use, copy, modify, merge, publish,
|
|||
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|||
// persons to whom the Software is furnished to do so, subject to the
|
|||
// following conditions:
|
|||
//
|
|||
// The above copyright notice and this permission notice shall be included
|
|||
// in all copies or substantial portions of the Software.
|
|||
//
|
|||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|||
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|||
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|||
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|||
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
|||
if (!process.versions.openssl) { |
|||
console.error("Skipping because node compiled without OpenSSL."); |
|||
process.exit(0); |
|||
} |
|||
|
|||
var common = require('../common'); |
|||
var assert = require('assert'); |
|||
var fs = require('fs'); |
|||
var tls = require('tls'); |
|||
var path = require('path'); |
|||
|
|||
(function() { |
|||
var cert = fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')); |
|||
var key = fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')); |
|||
|
|||
var errorEmitted = false; |
|||
|
|||
process.on('exit', function() { |
|||
assert.ok(!errorEmitted); |
|||
}); |
|||
|
|||
var conn = tls.connect(common.PORT, {cert:cert, key:key}, function() { |
|||
assert.ok(false); // callback should never be executed
|
|||
}); |
|||
conn.destroy(); |
|||
|
|||
conn.on('error', function() { |
|||
errorEmitted = true; |
|||
}); |
|||
})(); |
|||
|