Skip to content

Commit

Permalink
Merge branch 'master' into greg-node-12-7
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Brail committed Aug 25, 2015
2 parents f1b0c64 + a310808 commit 361c812
Show file tree
Hide file tree
Showing 12 changed files with 3,426 additions and 916 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/io/apigee/trireme/core/ArgUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public static int parseUnsignedIntForgiveably(Object o)
if (dVal > (double)Integer.MAX_VALUE) {
return -1;
}
return (int)Math.ceil(dVal);
return (int)Math.floor(dVal);
}
if (val instanceof Number) {
Number num = (Number)val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import io.apigee.trireme.kernel.PathTranslator;
import io.apigee.trireme.kernel.fs.AdvancedFilesystem;
import io.apigee.trireme.kernel.fs.BasicFilesystem;
import io.apigee.trireme.kernel.handles.IpcHandle;
import io.apigee.trireme.kernel.net.NetworkPolicy;
import io.apigee.trireme.kernel.net.SelectorHandler;
import org.mozilla.javascript.Context;
Expand Down Expand Up @@ -126,7 +125,6 @@ public class ScriptRunner
// Globals that are set up for the process
private NativeModule.NativeImpl nativeModule;
protected AbstractProcess process;
private Buffer.BufferModuleImpl buffer;
private String workingDirectory;
private String scriptFileName;
private TriremeProcess parentProcess;
Expand Down Expand Up @@ -282,10 +280,6 @@ public NativeModule.NativeImpl getNativeModule() {
return nativeModule;
}

public Buffer.BufferModuleImpl getBufferModule() {
return buffer;
}

@Override
public Selector getSelector() {
return selector;
Expand Down Expand Up @@ -1180,9 +1174,6 @@ private void initGlobals(Context cx)
process.setConnected(parentProcess != null);
scope.put("process", scope, process);

// The buffer module needs special handling because of the "charsWritten" variable
buffer = (Buffer.BufferModuleImpl)require("buffer", cx);

} catch (InvocationTargetException e) {
throw new NodeException(e);
} catch (IllegalAccessException e) {
Expand Down
Loading

0 comments on commit 361c812

Please sign in to comment.