Fixed function "prototype" property handler while setting.

njs_function_prototype_create() works as a getter and setter.  As a
getter the function is expected to create "prototype" property on the
first access, it also sets F.prototype.constructor property to ensure
F.prototype.constructor === F.

Setting of "constructor" property is not needed in setter context, as
it may overwrite existing "constructor" property in setval.

This closes #333 issue on Github.
2 files changed
tree: 1db925d16887d54e881de7c1e2afb5e21fde4829
  1. .hgtags
  2. CHANGES
  3. LICENSE
  4. README
  5. auto/
  6. configure
  7. nginx/
  8. src/
  9. test/
  10. utils/