JSValue changes, closing in on JSObject API. Began 'correct' semantic
implementation for various operators. git-svn-id: svn://10.0.0.236/trunk@32626 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -35,6 +35,10 @@ class JSInteger extends JSNumber {
|
||||
return new JSString(Integer.toString(i));
|
||||
}
|
||||
|
||||
void twiddle(Environment theEnv) {
|
||||
theEnv.theStack.push(new JSInteger(~i));
|
||||
}
|
||||
|
||||
void and(Environment theEnv) {
|
||||
JSValue vR = theEnv.theStack.pop();
|
||||
theEnv.theStack.push(new JSInteger(i & vR.toJSInteger().i));
|
||||
|
||||
Reference in New Issue
Block a user