GithubHelp home page GithubHelp logo

isabella232 / node-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from waffleio/node-proxy

0.0 0.0 0.0 249 KB

Harmony Proxies in node

License: MIT License

Python 0.20% JavaScript 46.84% C++ 52.95%

node-proxy's Introduction

node-proxy is an implementation of Harmony Proxies http://wiki.ecmascript.org/doku.php?id=harmony:proxies that allows the developer to create "catch-all" property handlers for an object or a function in node.js.

Author: Sam Shull
Repository: http://github.com/samshull/node-proxy
Issues: http://github.com/samshull/node-proxy/issues

Methods:

Object create(ProxyHandler handler [, Object proto ] ) throws Error, TypeError

Function createFunction(ProxyHandler handler, Function callTrap [, Function constructTrap ] ) throws Error, TypeError

Boolean isTrapping(Object obj) throws Error

Additional Methods (for ECMAScript 5 compatibliity): @see http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf

Boolean freeze(Object obj) throws Error, TypeError

Boolean seal(Object obj) throws Error, TypeError

Boolean preventExtensions(Object obj) throws Error, TypeError

Boolean isFrozen(Object obj) throws Error, TypeError

Boolean isSealed(Object obj) throws Error, TypeError

Boolean isExtensible(Object obj) throws Error, TypeError

PropertyDescriptor getOwnPropertyDescriptor(Object obj, String name) throws Error, TypeError

Boolean defineProperty(Object obj, String name, PropertyDescriptor pd) throws Error, TypeError

Boolean defineProperties(Object obj, Object descriptors) throws Error, TypeError

More methods:

Object hidden(Object obj, String name [, Object value ] ) throws Error

  • Set or retrieve a hidden property on an Object

Object clone(Object obj) throws Error

  • Create a shallow copy of an Object

Boolean isProxy(Object obj)

  • determine if an object was created by Proxy

Boolean setPrototype(Object obj, Object obj) throws Error

  • set the prototype of a given object to the second given object

node-proxy's People

Contributors

duralog avatar heavyk avatar andreasbotsikas avatar mmalecki avatar homeyer avatar aredridel avatar richardms avatar isaacs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.