This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rootNode = new StaticResourceNode("", null, StaticResourceNode.DirectoryType, YES), | |
cwd = FILE.cwd(); | |
rootNode.resolveSubPathAsDirectories(FILE.dirname(cwd)); | |
rootNode.resolveSubPath(cwd, StaticResourceNode.DirectoryType, function(cwdNode) | |
{ | |
var includePaths = global.OBJJ_INCLUDE_PATHS || ["Frameworks", "Frameworks/Debug"], | |
index = 0, | |
count = includePaths.length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function method() | |
{ | |
alert(x); | |
} | |
window.setTimeout(function() | |
{ | |
var x = 7; | |
method(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function method() | |
{ | |
alert(x); | |
} | |
var x = 7; | |
method(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function print_something() | |
{ | |
console.log(something); | |
} | |
var something = long_operation(); | |
print_something(); | |
var something = long_operation(); | |
print_something(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function code_block() | |
{ | |
function print_something() | |
{ | |
console.log(something); | |
} | |
var something = long_operation(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function code_block() | |
{ | |
function print_something() | |
{ | |
console.log(something); | |
} | |
date = new Date(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function print_something() | |
{ | |
console.log(something); | |
} | |
eval("var something = long_operation()"); | |
print_something(); | |
eval("var something = long_operation()"); | |
print_something(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Francisco-Tolmaskys-MacBook:Resources tolmasky$ NARWHAL_ENGINE=jsc objj | |
objj> objj_executeFile | |
i dont understand | |
load em up | |
DEPENDENCY: initiated by (Anonymous) | |
DEPENDENCY: Ended | |
done with that | |
objj_executeFile | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function objj_eval(/*String*/ aString) | |
{ | |
Executable.setCommonJSArguments(require, exports, module, system, print, window); | |
var executable = preprocess(aString, "", 0), | |
objj_executeFile = fileExecuterForPath(FILE.cwd()), | |
objj_importFile = fileImporterForPath(FILE.cwd()); | |
print("i dont understand");try{ | |
if (!executable.hasLoadedFileDependencies()){print("load em up"); | |
executable.loadFileDependencies();}}catch(e) { print("error?" + e); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileExecuterForPath = function(aPath) | |
{ | |
var executer = oldFileExecuterForPath(aPath); | |
return function() | |
{ | |
record(); | |
executer(); | |
diff(); | |
} |