Created
August 7, 2014 17:21
-
-
Save mykmelez/916e9d1c021a4033d85a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Native["com/sun/cldc/isolate/Isolate.waitStatus.(I)V"] = function(ctx, stack) { | |
var maxStatus = stack.pop(), _this = stack.pop(); | |
var checkStatus = function() { | |
if (_this.status < maxStatus) { | |
window.setZeroTimeout(checkStatus); | |
} else { | |
ctx.resume(); | |
} | |
}; | |
if (_this.status < maxStatus) { | |
window.setZeroTimeout(checkStatus); | |
throw VM.Pause; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment