Permalink
Browse files

Annotated authors of each file.

  • Loading branch information...
1 parent 752bc86 commit 293fb0d71c9199e1e976d4e53a1fdceacdef1732 @kriskowal kriskowal committed Dec 16, 2009
Showing with 264 additions and 47 deletions.
  1. +1 −0 engines/browser/lib/binary.js
  2. +2 −0 engines/browser/lib/reactor.js
  3. +3 −0 engines/browser/lib/system.js
  4. +3 −0 engines/default/lib/binary-engine.js
  5. +2 −0 engines/default/lib/binary.js
  6. +3 −0 engines/default/lib/file-engine.js
  7. +2 −0 engines/default/lib/global-commonjs.js
  8. +3 −0 engines/default/lib/global-es5.js
  9. +2 −0 engines/default/lib/global.js
  10. +2 −0 engines/default/lib/io-engine.js
  11. +1 −0 engines/default/lib/os-engine.js
  12. +2 −0 engines/default/lib/reactor.js
  13. +3 −0 engines/default/lib/system.js
  14. +3 −0 engines/default/lib/worker.js
  15. +2 −0 engines/rhino/bootstrap.js
  16. +3 −0 engines/rhino/lib/binary-engine.js
  17. +4 −1 engines/rhino/lib/event-queue.js
  18. +3 −0 engines/rhino/lib/file-engine.js
  19. +3 −0 engines/rhino/lib/http-client-engine.js
  20. +2 −0 engines/rhino/lib/http-engine.js
  21. +4 −0 engines/rhino/lib/io-engine.js
  22. +2 −0 engines/rhino/lib/md5-engine.js
  23. +2 −0 engines/rhino/lib/os-engine.js
  24. +2 −0 engines/rhino/lib/packages-engine.js
  25. +3 −0 engines/rhino/lib/sandbox-engine.js
  26. +2 −0 engines/rhino/lib/system.js
  27. +6 −2 engines/rhino/lib/uuid.js
  28. +3 −0 engines/rhino/lib/worker-engine.js
  29. +2 −0 engines/rhino/lib/zip.js
  30. +2 −0 engines/secure/lib/file.js
  31. +2 −0 engines/secure/lib/system.js
  32. +1 −0 engines/template/bootstrap.js
  33. +3 −0 engines/template/lib/file-engine.js
  34. +2 −0 engines/template/lib/system.js
  35. +1 −0 lib/args.js
  36. +2 −0 lib/base16.js
  37. +0 −8 lib/codec/base64.js
  38. +2 −9 lib/crc32.js
  39. +3 −0 lib/file-bootstrap.js
  40. +3 −0 lib/file.js
  41. +2 −0 lib/hash.js
  42. +3 −0 lib/hashp.js
  43. +4 −1 lib/html.js
  44. +4 −1 lib/http-client.js
  45. +2 −0 lib/http.js
  46. +2 −0 lib/http/fs-store.js
  47. +3 −0 lib/io.js
  48. +2 −0 lib/loader.js
  49. +2 −0 lib/loader/attenuated.js
  50. +3 −0 lib/loader/multi.js
  51. +2 −0 lib/loader/prefix.js
  52. +3 −0 lib/logger.js
  53. +4 −1 lib/md4.js
  54. +2 −1 lib/md5.js
  55. +3 −0 lib/mime.js
  56. +3 −0 lib/narwhal.js
  57. +2 −0 lib/narwhal/client.js
  58. +2 −0 lib/narwhal/compile.js
  59. +2 −0 lib/narwhal/env.js
  60. +3 −0 lib/narwhal/inline.js
  61. +2 −0 lib/narwhal/json.js
  62. +3 −0 lib/narwhal/repl-worker.js
  63. +4 −0 lib/narwhal/repl.js
  64. +3 −0 lib/narwhal/server-test.js
  65. +2 −0 lib/narwhal/server.js
  66. +2 −0 lib/narwhal/tusk.js
  67. +2 −0 lib/narwhal/tusk/commands/bin.js
  68. +3 −0 lib/narwhal/tusk/commands/bundle.js
  69. +2 −0 lib/narwhal/tusk/commands/catalog.js
  70. +2 −0 lib/narwhal/tusk/commands/clone.js
  71. +2 −0 lib/narwhal/tusk/commands/consolidate.js
  72. +2 −0 lib/narwhal/tusk/commands/engine.js
  73. +3 −0 lib/narwhal/tusk/commands/freeze.js
  74. +2 −0 lib/narwhal/tusk/commands/init.js
  75. +2 −0 lib/narwhal/tusk/commands/install.js
  76. +2 −0 lib/narwhal/tusk/commands/list.js
  77. +3 −0 lib/narwhal/tusk/commands/orphans.js
  78. +2 −0 lib/narwhal/tusk/commands/reheat.js
  79. +2 −0 lib/narwhal/tusk/commands/remove.js
  80. +2 −0 lib/narwhal/tusk/commands/search.js
  81. +2 −0 lib/narwhal/tusk/commands/update.js
  82. +3 −0 lib/narwhal/tusk/commands/upgrade.js
  83. +2 −0 lib/narwhal/tusk/update.js
  84. +2 −0 lib/os.js
  85. +2 −0 lib/packages.js
  86. +3 −0 lib/printf.js
  87. +3 −0 lib/promise.js
  88. +3 −0 lib/querystring.js
  89. +4 −0 lib/ref-send.js
  90. +2 −0 lib/sandbox.js
  91. +1 −0 lib/sha.js
  92. +3 −11 lib/sha256.js
  93. +2 −0 lib/struct.js
  94. +1 −0 lib/term.js
  95. +4 −0 lib/test.js
  96. +3 −0 lib/test/assert.js
  97. +4 −1 lib/test/equiv.js
  98. +3 −0 lib/test/jsdump.js
  99. +3 −0 lib/test/runner.js
  100. +2 −0 lib/unload.js
  101. +2 −0 lib/utf8.js
  102. +2 −0 lib/util.js
  103. +3 −0 lib/uuid.js
  104. +9 −11 lib/xregexp.js
@@ -1,2 +1,3 @@
+// Tom Robinson
exports.ByteString = String;
exports.ByteArray = Array;
@@ -1,4 +1,6 @@
+// Kris Kowal
+
var active = false;
var pending = [];
var run = function () {
@@ -1,3 +1,6 @@
+
+// Christoph Dorn
+
exports.print = function () {
system.print.apply(system, arguments);
};
@@ -1,3 +1,6 @@
+
+// Tom Robinson
+
exports.B_LENGTH = function(bytes) {
return bytes.length;
}
@@ -1,4 +1,6 @@
+
/* Binary */
+// Tom Robinson
var engine = require("binary-engine"),
B_ALLOC = engine.B_ALLOC,
@@ -1,4 +1,7 @@
+// Tom Robinson
+// Kris Kowal
+
// HACK: use "fs.read" and "fs.isFile" until properly implemented.
// save "fs" here since it will be replaced in "system" later.
var fs = system.fs;
@@ -1,4 +1,6 @@
+// Kris Kowal
+
// https://wiki.mozilla.org/ServerJS/Binary/B
if (!String.prototype.toByteString)
String.prototype.toByteString = function(charset) {
@@ -1,4 +1,7 @@
+// Kris Kowal
+// Tom Robinson
+
/*!
Copyright (c) 2009, 280 North Inc. http://280north.com/
MIT License. http://github.com/280north/narwhal/blob/master/README.md
@@ -1,4 +1,6 @@
+// Tom Robinson
+
require("./global-es5");
require("./global-commonjs");
@@ -1,4 +1,6 @@
+
// IO: default
+// Tom Robinson
var IO = exports.IO = function(inputStream, outputStream) {
this.inputStream = inputStream;
@@ -1,3 +1,4 @@
+// Christoph Dorn
exports.exit = function(status) {
throw new Error("Exiting with status="+status);
}
@@ -1,4 +1,6 @@
+// Kris Kowal
+
var tasks = [];
require('unload').when(function () {
@@ -1,4 +1,7 @@
+// Tom Robinson
+// Kris Kowal
+
var IO = require("./io").IO;
exports.print = function () {
@@ -1,3 +1,6 @@
+
+// Kris Zyp
+
var queue = require("event-queue");
var workerEngine = require("worker-engine");
@@ -1,4 +1,6 @@
(function(global, evalGlobal) {
+// Tom Robinson
+// Kris Kowal
/*
this is a minimal engine-specific thunk for narwhal.js
@@ -1,3 +1,6 @@
+
+// Tom Robinson
+
exports.B_LENGTH = function(bytes) {
return bytes.length;
}
@@ -1,3 +1,6 @@
+
+// Kris Zyp
+
/**
* Represents the event queue for a vat
* The API is modeled after https://developer.mozilla.org/en/nsIThread
@@ -79,4 +82,4 @@ exports.shutdown = function(){
exports.defaultErrorReporter = function(e){
print((e.rhinoException && e.rhinoException.printStackTrace()) || (e.name + ": " + e.message));
-};
+};
@@ -1,4 +1,7 @@
+// Tom Robinson
+// Kris Kowal
+
// use the "file" module as the exports object.
var exports = require('./file');
@@ -1,3 +1,6 @@
+
+// Isaac Schleuter
+
var IO = require("io").IO,
HashP = require("hashp").HashP;
@@ -1,4 +1,6 @@
+// Kris Kowal
+
var IO = require('./io').IO;
exports.IO = function (url) {
@@ -1,3 +1,7 @@
+
+// Tom Robinson
+// Kris Kowal
+
// IO: Rhino
var IO = exports.IO = function(inputStream, outputStream) {
@@ -1,4 +1,6 @@
+// George Moschovitis
+
var binary = require("./binary");
var JString = Packages.java.lang.String,
@@ -1,4 +1,6 @@
+// Kris Kowal
+
var io = require('io');
var cLib;
@@ -1,4 +1,6 @@
+// Kris Kowal
+
var fs = require('./file');
var system = require('./system');
@@ -1,4 +1,7 @@
+// Kris Kowal
+// STATUS: never really worked.
+
/* shared, sealed global context */
var blacklist = [
@@ -1,4 +1,6 @@
+// Tom Robinson
+
var io = require("./io");
exports.print = function () {
@@ -1,3 +1,7 @@
+
+// Kris Zyp
+
exports.randomUUID = function(){
- return java.util.UUID.randomUUID().toString()
-};
+ return String(java.util.UUID.randomUUID())
+};
+
@@ -1,3 +1,6 @@
+
+// Kris Zyp
+
exports.createEnvironment = function(){
var workerQueue,
workerGlobal = new org.mozilla.javascript.tools.shell.Global();
View
@@ -1,4 +1,6 @@
+// Kris Kowal
+
var io = require('io');
var javaZip = Packages.java.util.zip;
@@ -1,4 +1,6 @@
+// Kris Kowal
+
for (var name in system.fs) {
if (Object.prototype.hasOwnProperty.call(system.fs, name))
exports[name] = system.fs[name];
@@ -1,4 +1,6 @@
+// Kris Kowal
+
for (var name in system) {
if (Object.prototype.hasOwnProperty.call(system, name)) {
exports[name] = system[name];
@@ -1,4 +1,5 @@
(function (evalGlobal) {
+// Kris Kowal
var read = /*TODO*/; // function(path:string):string
@@ -1,4 +1,7 @@
+// Kris Kowal
+// Christoph Dorn
+
var exports = require('./file');
exports.SEPARATOR = '/';
@@ -1,4 +1,6 @@
+// Tom Robinson
+
var IO = require("./io").IO;
exports.stdin = /*TODO*/
View
@@ -1,3 +1,4 @@
+// kriskowal, Kris Kowal
var os = require('os');
var util = require('util');
View
@@ -1,4 +1,6 @@
+// Kris Kowal
+
var util = require('util');
var binary = require('binary');
var struct = require('struct');
View
@@ -1,8 +0,0 @@
-var system = require("system");
-system.log.warn("codec/base64 is deprecated. use base64 directly.");
-var base64 = require("base64");
-for (var name in base64) {
- if (Object.prototype.hasOwnProperty.call(base64, name)) {
- exports[name] = base64[name];
- }
-}
View
@@ -1,3 +1,5 @@
+// from http://www.webtoolkit.info/ Javascript crc32
+// ported by Kris Kowal
var util = require('./util');
@@ -49,12 +51,3 @@ exports.hash = function (bin, table) {
return ~crc;
};
-/*
-
- References
- ==========
-
- http://www.webtoolkit.info/
- Javascript crc32
-
-*/
View
@@ -1,4 +1,7 @@
+// Kris Kowal
+// Tom Robinson
+
// NOTE: this file is used is the bootstrapping process,
// so any "requires" must be accounted for in narwhal.js
View
@@ -1,4 +1,7 @@
+// Kris Kowal
+// Tom Robinson
+
// NOTE: portions of the "file" module are implemented in "file-bootstrap" and "file-engine",
// which are loaded at the bottom of this file to allow for overriding default implementations
View
@@ -1,3 +1,5 @@
+
+// Tom Robinson
// Hash object
var Hash = exports.Hash = {};
View
@@ -1,3 +1,6 @@
+
+// Tom Robinson
+
var Hash = require("hash").Hash;
// HashP : Case Preserving hash, used for headers
View
@@ -1,3 +1,6 @@
+
+// gmosx, George Moschovitis
+
/**
* Escape HTML characters.
*/
@@ -13,4 +16,4 @@ exports.escapeHTML = function(str) {
*/
exports.stripTags = function (str) {
return str.replace(/<([^>]+)>/g, "");
-}
+}
View
@@ -1,3 +1,6 @@
+
+// isaacs, Isaac Schleuter
+
var IO = require("io").IO,
HashP = require("hashp").HashP,
engine = require("http-client-engine");
@@ -131,4 +134,4 @@ HttpClient.print = function HttpClient_print (resp) {
resp.body.forEach(function (p) { out.push(p) });
print(out.join(""));
};
-
+
View
@@ -1,4 +1,6 @@
+// Kris Kowal
+
var implementation = require('http-engine');
exports.open = function (url, mode, options) {
View
@@ -1,4 +1,6 @@
+// Kris Kowal
+
var FS = require("file");
var HTTP = require("http");
var URI = require("uri");
View
@@ -1,3 +1,6 @@
+
+// Tom Robinson
+
// IO: engine independent
var engine = require("io-engine");
View
@@ -1,4 +1,6 @@
+// kriskowal, Kris Kowal
+
// NOTE: this file is used is the bootstrapping process,
// so any "requires" must be accounted for in narwhal.js
View
@@ -1,4 +1,6 @@
+// Kris Kowal
+
exports.AttenuatedLoader = function (loader) {
var self = {};
View
@@ -1,4 +1,7 @@
+// Kris Kowal
+// Tom Robinson
+
// NOTE: this file is used is the bootstrapping process,
// so any "requires" must be accounted for in narwhal.js
View
@@ -1,4 +1,6 @@
+// Kris Kowal
+
exports.PrefixLoader = function (prefix, loader) {
var self = this || {};
Oops, something went wrong.

0 comments on commit 293fb0d

Please sign in to comment.