This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is one major API change in the refactor: filename extensions are now required when requiring or including modules. Added extra test to test-module-loading.js.
- Loading branch information
Showing
13 changed files
with
153 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
var c = require("b/c"); | ||
var c = require("b/c.js"); | ||
exports.A = function () { | ||
return "A"; | ||
} | ||
exports.C = function () { return c.C(); } | ||
}; | ||
exports.C = function () { | ||
return c.C(); | ||
}; | ||
exports.D = function () { | ||
return c.D(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
var d = require("d.js"); | ||
|
||
exports.C = function () { | ||
return "C"; | ||
} | ||
}; | ||
|
||
exports.D = function () { | ||
return d.D(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
exports.D = function () { | ||
return "D"; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include("mjsunit"); | ||
include("mjsunit.js"); | ||
|
||
function onLoad () { | ||
var dirname = node.path.dirname(__filename); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include("mjsunit"); | ||
include("mjsunit.js"); | ||
var assert_count = 0; | ||
|
||
function onLoad () { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include("mjsunit"); | ||
include("mjsunit.js"); | ||
|
||
var port = 8222; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
include("mjsunit.js"); | ||
var a = require("fixtures/a.js"); | ||
var d = require("fixtures/b/d.js"); | ||
var d2 = require("fixtures/b/d.js"); | ||
|
||
function onLoad () { | ||
assertFalse(false, "testing the test program."); | ||
|
||
assertInstanceof(a.A, Function); | ||
assertEquals("A", a.A()); | ||
|
||
assertInstanceof(a.C, Function); | ||
assertEquals("C", a.C()); | ||
|
||
assertInstanceof(a.D, Function); | ||
assertEquals("D", a.D()); | ||
|
||
assertInstanceof(d.D, Function); | ||
assertEquals("D", d.D()); | ||
|
||
assertInstanceof(d2.D, Function); | ||
assertEquals("D", d2.D()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include("mjsunit"); | ||
include("mjsunit.js"); | ||
|
||
var port = 12123; | ||
var N = 1000; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include("mjsunit"); | ||
include("mjsunit.js"); | ||
var port = 8921; | ||
|
||
function onLoad () { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include("mjsunit"); | ||
include("mjsunit.js"); | ||
|
||
function onLoad () { | ||
assertInstanceof(setTimeout, Function); | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.