view graal/com.oracle.truffle.sl.test/tests/DefineFunction.sl @ 20103:7815c4d4a07f

removed/replaced references to non replay-serializable objects from replay-serializable objects
author Doug Simon <doug.simon@oracle.com>
date Tue, 31 Mar 2015 15:15:33 +0200
parents b16ec83edc73
children
line wrap: on
line source

function foo() {
  println(test(40, 2));
}

function main() {
  defineFunction("function test(a, b) { return a + b; }");
  foo();

  defineFunction("function test(a, b) { return a - b; }");
  foo();
}