Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verlässliche Systemsoftware
projects
osv
Commits
f00439d9
Commit
f00439d9
authored
11 years ago
by
Guy Zana
Browse files
Options
Downloads
Patches
Plain Diff
cli: define the ELFLoader class to javascript so it'll be accessible
from javascript.
parent
8df40902
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/cloudius/main/RhinoCLI.java
+2
-0
2 additions, 0 deletions
java/src/com/cloudius/main/RhinoCLI.java
with
2 additions
and
0 deletions
java/src/com/cloudius/main/RhinoCLI.java
+
2
−
0
View file @
f00439d9
...
...
@@ -3,6 +3,7 @@ package com.cloudius.main;
import
java.io.*
;
import
com.cloudius.tests.TCPEchoServerTest
;
import
com.cloudius.util.ELFLoader
;
import
sun.org.mozilla.javascript.*
;
import
sun.org.mozilla.javascript.tools.shell.*
;
...
...
@@ -24,6 +25,7 @@ public class RhinoCLI {
global
.
init
(
cx
);
_scope
=
ScriptableObject
.
getTopLevelScope
(
global
);
ScriptableObject
.
defineClass
(
_scope
,
TCPEchoServerTest
.
class
);
ScriptableObject
.
defineClass
(
_scope
,
ELFLoader
.
class
);
FileReader
cli_js
=
new
FileReader
(
"/console/cli.js"
);
cx
.
evaluateReader
(
_scope
,
cli_js
,
"cli.js"
,
1
,
null
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment