unify 1-getting-started/6_object_wrap samples to implements the same logics.
#539
+82
−18