blob: 7b53726e595e3fe81559b1a510f5a2794503542b [file] [log] [blame]
print("Start of script");
var primitiveInteger = 42; // primitive-integer-definition-hook
var primitiveString = "Hello world";
var nullValue = null;
var nativeArray = [1, "foo", null]
var bigArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
var nativeObject = {firstname: "John", lastname: "Doe"};
var file = org.eclipse.ease.tools.ResourceTools.resolve("workspace://Rhino Debug Test/RhinoDebugTest.js")
function testMethod(a, b) { // testMethod-def-hook
var primitiveInteger = -42;
return a + b; // testMethod-result-hook
}
var result = testMethod(2, 3); // testMethod-call-hook
print("Result of testMethod = " + result);
print("End of script"); // end-of-script-hook