joyent/node — pull request #3035 by ssuda (2012-03-30 07:25:57+00:00)
Title: Encapsulating js type checking and conversion

First thing we will do in c++ land is js type checking and converting them to c++ types, we can encapsulate it into one function. ScanArgs is such function, we will do the type checking and conversions to c++ types. node_file.cc is modified to demonstrate ScanArgs. ScanArgs is modeled after rb_scan_args
but with type safety