Skip to content

Instantly share code, notes, and snippets.

@dckc
Last active September 23, 2015 03:24
Show Gist options
  • Save dckc/483fcb5c969067cc36cf to your computer and use it in GitHub Desktop.
Save dckc/483fcb5c969067cc36cf to your computer and use it in GitHub Desktop.
SES on node works in one case Mon Sep 21 23:31:08 CDT 2015

https://www.npmjs.com/package/ses doesn't work (@@symptoms) but...

$ node in_node.js
  416 Apparently fine
  24 Deleted
  1 Skipped
  initSES succeeded.

In #erights on FreeNode:

Sep 21 23:30:20 <DanC_>	AHA!
Sep 21 23:30:38 <DanC_>	I used the example from https://www.npmjs.com/package/ses (starting with var FS = require("fs"); )

Date: Sun Sep 20 19:05:09 2015 -0700 https://github.com/tvcutsem/es-lab/commit/72f04fa82178861f0357faef9bde2a7354ff45a4

Note also earlier work:

dev-hg/ses-play$ hg log --style compact
24[tip]   8023bf963433   2013-02-06 00:27 -0600   dconnolly
  test Not authorized case; add some prose 9/9
...
0   8f2dd7684bbe   2012-09-27 23:48 -0500   dconnolly
  hello-SES world works,

next steps?

  • SES + flow, system.js
  • Q.comm for server/browser stuff
var FS = require("fs");
var VM = require("vm");
var source = FS.readFileSync("initSES.js");
var script = new VM.Script(source);
script.runInThisContext();
var f = cajaVM.compileExpr("console.log('hi')");
f({console: console});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment