-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 45: Added support for Trireme to consult an optional extra Clas…
…sShutter. This will allow Trireme embedders the ability to open up Rhino for passing/using Java objects in their script environments.
- Loading branch information
1 parent
266cb55
commit 35b6a51
Showing
5 changed files
with
70 additions
and
6 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
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
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,8 @@ | ||
var assert = require('assert'); | ||
var actualFilePath = new java.io.File(__filename).getCanonicalPath(); | ||
var expectedFilePath = process.argv[2]; | ||
|
||
assert (actualFilePath.equals(expectedFilePath)); | ||
|
||
// We have to use "==" here because Rhino thinks actualFilePath is an object instead of a string | ||
assert (actualFilePath == expectedFilePath); |