Skip to content

Commit

Permalink
Trying to get jsexec to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Dec 30, 2009
1 parent b4c8f2e commit 66ab369
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build/makelib.py
Expand Up @@ -45,7 +45,7 @@ def main(argv):
filenames = [
'patched/jsdefs.js',
'patched/jsparse.js',
#'patched/jsexec.js',
'patched/jsexec.js',
'patched/jsformat.js',
]

Expand Down
15 changes: 3 additions & 12 deletions tests/narcissus-test.js
Expand Up @@ -66,38 +66,29 @@ exports.testFormat = function() {
print(code);
var parseTree = narcissus.parse(code);

print("PARSED");
print(json.stringify(parseTree, null, 2));

print("FORMAT");
print(narcissus.format(parseTree));
print("DONE FORMAT");
}

exports.testFunction = function() {
// TODO: Make this work
return;
var code = testFileContents('testdata/function.js');

print(code);
var result = narcissus.evaluate(code);
return;
print("testFunction " + result);
}

exports.testParseRealCode = function() {
var code = testFileContents('testdata/json-template.js');
return; // disabled for Rhino
var parseTree = narcissus.parse(code);
return;
print(json.stringify(parseTree, null, 2));
print("FORMAT");
print(narcissus.format(parseTree));
print("DONE FORMAT");
}

exports.testBreak = function() {
var code = testFileContents('testdata/break.js');
var parseTree = narcissus.parse(code);
print(json.stringify(parseTree, null, 2));
//print(json.stringify(parseTree, null, 2));
}

if (require.main === module.id)
Expand Down

0 comments on commit 66ab369

Please sign in to comment.