packages feed

hjs-0.2: testsuite/67_method.js

function figureMethodName(prototype, method)
{

  for (var key in prototype)
  {
    if ( prototype.hasOwnProperty(key) &&
        prototype[key] === method)
      return key
  }
  return null
}

function Pet()
{
	this.name = "cat";

}