Skip to content

Instantly share code, notes, and snippets.

@dperini
Created November 27, 2009 00:02
Show Gist options
  • Save dperini/243729 to your computer and use it in GitHub Desktop.
Save dperini/243729 to your computer and use it in GitHub Desktop.
js> File
function File() {
[native code]
}
js> Object.prototype.toString.call(File)
[object Function]
js>
js> stats("File")
0 0x10084a200 "separator" ENUMERATE READONLY slot 11 flags 4 shortid 0
0 0x10084a1c8 "error" ENUMERATE slot 10 flags 0 shortid 0
0 0x10084a190 "output" ENUMERATE slot 9 flags 0 shortid 0
0 0x10084a158 "input" ENUMERATE slot 8 flags 0 shortid 0
0 0x10084a120 "currentDir" ENUMERATE READONLY slot 7 flags 4 shortid 0
0 0x100847e58 "prototype" READONLY PERMANENT slot 6 flags 0 shortid 0
js>
js> var myfile = new File("a.txt");
js> stats("myfile")
0 0x10084a120 "toURL" slot 42 flags 0 shortid 0
0 0x10084a0e8 "toString" slot 41 flags 0 shortid 0
0 0x10084a0b0 "mkdir" slot 40 flags 0 shortid 0
0 0x10084a078 "list" slot 39 flags 0 shortid 0
0 0x10084a040 "writeAll" slot 38 flags 0 shortid 0
0 0x10084a008 "writeln" slot 37 flags 0 shortid 0
0 0x100849fd0 "write" slot 36 flags 0 shortid 0
0 0x100849f98 "readAll" slot 35 flags 0 shortid 0
0 0x100849f60 "readln" slot 34 flags 0 shortid 0
0 0x100849f28 "read" slot 33 flags 0 shortid 0
0 0x100849ef0 "seek" slot 32 flags 0 shortid 0
0 0x100849eb8 "flush" slot 31 flags 0 shortid 0
0 0x100849e80 "renameTo" slot 30 flags 0 shortid 0
0 0x100849e48 "copyTo" slot 29 flags 0 shortid 0
0 0x100849e10 "remove" slot 28 flags 0 shortid 0
0 0x100849dd8 "close" slot 27 flags 0 shortid 0
0 0x100849da0 "open" slot 26 flags 0 shortid 0
0 0x100849d68 "isNative" ENUMERATE READONLY slot 25 flags 4 shortid -22
0 0x100849d30 "position" ENUMERATE slot 24 flags 4 shortid -18
0 0x100849cf8 "hasAutoFlush" ENUMERATE READONLY slot 23 flags 4 shortid -21
0 0x100849cc0 "hasRandomAccess" ENUMERATE READONLY slot 22 flags 4 shortid -17
0 0x100849c88 "size" ENUMERATE READONLY slot 21 flags 4 shortid -16
0 0x100849c50 "lastModified" ENUMERATE READONLY slot 20 flags 4 shortid -15
0 0x100849c18 "creationTime" ENUMERATE READONLY slot 19 flags 4 shortid -14
0 0x100849be0 "mode" ENUMERATE READONLY slot 18 flags 4 shortid -13
0 0x100849ba8 "type" ENUMERATE READONLY slot 17 flags 4 shortid -12
0 0x100849b70 "isOpen" ENUMERATE READONLY slot 16 flags 4 shortid -11
0 0x100849b38 "canReplace" ENUMERATE READONLY slot 15 flags 4 shortid -20
0 0x100849b00 "canAppend" ENUMERATE READONLY slot 14 flags 4 shortid -19
0 0x100849ac8 "canWrite" ENUMERATE READONLY slot 13 flags 4 shortid -10
0 0x100849a90 "canRead" ENUMERATE READONLY slot 12 flags 4 shortid -9
0 0x100849a58 "exists" ENUMERATE READONLY slot 11 flags 4 shortid -8
0 0x100849a20 "isFile" ENUMERATE READONLY slot 10 flags 4 shortid -7
0 0x1008499e8 "isDirectory" ENUMERATE READONLY slot 9 flags 4 shortid -6
0 0x1008499b0 "name" ENUMERATE READONLY slot 8 flags 4 shortid -5
0 0x100849978 "path" ENUMERATE READONLY slot 7 flags 4 shortid -4
0 0x100849940 "parent" ENUMERATE READONLY slot 6 flags 4 shortid -3
0 0x100849908 "length" ENUMERATE READONLY slot 5 flags 4 shortid -2
0 0x1008498d0 "constructor" slot 4 flags 0 shortid 0
js>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment