зеркало из https://github.com/mozilla/pluotsorbet.git
fixes
This commit is contained in:
Родитель
810b917d35
Коммит
9cb5538a5b
1
frame.js
1
frame.js
|
@ -81,7 +81,6 @@ Frame.prototype.newException = function(className, message) {
|
|||
|
||||
Frame.prototype.run = function(stack) {
|
||||
var isStatic = ACCESS_FLAGS.isStatic(this.methodInfo.access_flags);
|
||||
|
||||
var argc = 0;
|
||||
if (!isStatic) {
|
||||
++argc;
|
||||
|
|
4
jvm.js
4
jvm.js
|
@ -59,5 +59,7 @@ JVM.prototype.run = function() {
|
|||
throw new Error("Entry point method is not found.");
|
||||
}
|
||||
|
||||
THREADS.current.startMain(entryPoint, []);
|
||||
var stack = THREADS.current.stack;
|
||||
stack.push(null); // args
|
||||
entryPoint.run(stack);
|
||||
}
|
||||
|
|
|
@ -31,8 +31,3 @@ Thread.prototype.setPriority = function(priority) {
|
|||
Thread.prototype.getPriority = function() {
|
||||
return this.priority;
|
||||
}
|
||||
|
||||
Thread.prototype.startMain = function(entryPoint, args) {
|
||||
this.stack.push(null); // args
|
||||
entryPoint.run(this.stack);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче