Skip to content

Instantly share code, notes, and snippets.

@ollym
Created November 5, 2010 09:20
Show Gist options
  • Save ollym/663868 to your computer and use it in GitHub Desktop.
Save ollym/663868 to your computer and use it in GitHub Desktop.
var engine = require('ringo/engine');
var script = 'var y = x * x';
var scope = engine.evaluateString(script, { x: 5 });
// scope.x = 5
// scope.y = 25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment