Permalink
Browse files

Normalize lines and remove unneccessary string include

  • Loading branch information...
1 parent 303547b commit e11a8c59e4251b77822661be4387880ca02f5715 @samshull samshull committed Sep 2, 2010
Showing with 137 additions and 138 deletions.
  1. +22 −22 LICENSE.txt
  2. +14 −14 Makefile
  3. +49 −49 README.txt
  4. +37 −37 package.json
  5. +1 −0 src/node-proxy.cc
  6. +0 −2 src/node-proxy.h
  7. +14 −14 src/wscript
View
@@ -1,22 +1,22 @@
-Copyright (c) 2010 Sam Shull http://www.google.com/profiles/brickysam26
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-
-
+Copyright (c) 2010 Sam Shull http://www.google.com/profiles/brickysam26
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+
+
View
@@ -1,15 +1,15 @@
-all:
- @echo "BUILDING: C++ Component"
- @rm -rf src/build/
- @rm -rf src/.lock-wscript
- @rm -rf lib/node-proxy.node
- @cd src;node-waf configure build;cd ..
- @cp src/build/default/node-proxy.node lib/node-proxy.node
-
-clean:
- rm -rf src/build/
- rm -rf src/.lock-wscript
- rm -rf lib/node-proxy.node
-
-test: all
+all:
+ @echo "BUILDING: C++ Component"
+ @rm -rf src/build/
+ @rm -rf src/.lock-wscript
+ @rm -rf lib/node-proxy.node
+ @cd src;node-waf configure build;cd ..
+ @cp src/build/default/node-proxy.node lib/node-proxy.node
+
+clean:
+ rm -rf src/build/
+ rm -rf src/.lock-wscript
+ rm -rf lib/node-proxy.node
+
+test: all
node test/test.js
View
@@ -1,52 +1,52 @@
-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/brickysam26/node-proxy
-Issues: http://github.com/brickysam26/node-proxy/issues
-
-*** This does not work appropriately in node versions 0.1.100 - 0.1.102. You will need to install node_version.h in $PREFIX/include/node
-
-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)
+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/brickysam26/node-proxy
+Issues: http://github.com/brickysam26/node-proxy/issues
+
+*** This does not work appropriately in node versions 0.1.100 - 0.1.102. You will need to install node_version.h in $PREFIX/include/node
+
+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
+ -set the prototype of a given object to the second given object
View
@@ -1,37 +1,37 @@
-{
- "name": "node-proxy",
- "version": "0.3.2",
- "description": "A module for node implementing __noSuchMethod__-type handlers, such as object overloading, as part of the Harmony Catch-All Proxies specification found at http://wiki.ecmascript.org/doku.php?id=harmony:proxies",
- "keywords": [
- "interceptor",
- "proxy",
- "overload",
- "__noSuchMethod__"
- ],
- "contributors": [ "Sam Shull <http://www.google.com/profiles/brickysam26>" ],
- "licenses": [
- {
- "type": "MIT",
- "url": "http://www.opensource.org/licenses/mit-license.html"
- }
- ],
- "bugs":{
- "web":"http://github.com/brickysam26/node-proxy/issues"
- },
- "implements": [
- "http://wiki.ecmascript.org/doku.php?id=harmony:proxies"
- ],
- "engines": {
- "node" : ">=0.1.103"
- },
- "repositories": [
- {
- "type": "git",
- "url": "http://github.com/brickysam26/node-proxy"
- }
- ],
- "main": "./lib/node-proxy.node",
- "scripts":{
- "install":"make"
- }
-}
+{
+ "name": "node-proxy",
+ "version": "0.3.2",
+ "description": "A module for node implementing __noSuchMethod__-type handlers, such as object overloading, as part of the Harmony Catch-All Proxies specification found at http://wiki.ecmascript.org/doku.php?id=harmony:proxies",
+ "keywords": [
+ "interceptor",
+ "proxy",
+ "overload",
+ "__noSuchMethod__"
+ ],
+ "contributors": [ "Sam Shull <http://www.google.com/profiles/brickysam26>" ],
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://www.opensource.org/licenses/mit-license.html"
+ }
+ ],
+ "bugs":{
+ "web":"http://github.com/brickysam26/node-proxy/issues"
+ },
+ "implements": [
+ "http://wiki.ecmascript.org/doku.php?id=harmony:proxies"
+ ],
+ "engines": {
+ "node" : ">=0.1.103"
+ },
+ "repositories": [
+ {
+ "type": "git",
+ "url": "http://github.com/brickysam26/node-proxy"
+ }
+ ],
+ "main": "./lib/node-proxy.node",
+ "scripts":{
+ "install":"make"
+ }
+}
View
@@ -589,6 +589,7 @@ Handle<Value> NodeProxy::CreateFunction(const Arguments& args) {
*/
assert(!V8::IsDead());
Local<Object> fn = instance->NewInstance();
+ fn->SetPrototype(args[1]->ToObject()->GetPrototype());
/*
Local<Function> fn = temp->GetFunction();
View
@@ -38,8 +38,6 @@
#include <node.h>
#include <node_version.h>
-#include <String>
-
#define THREXCW(str) ThrowException(Exception::Error(str))
#define THREXC(str) THREXCW(String::New(str))
#define THR_TYPE_ERROR(str) \
View
@@ -1,15 +1,15 @@
-srcdir = '.'
-blddir = 'build'
-VERSION = '0.1'
-
-def set_options(opt):
- opt.tool_options('compiler_cxx')
-
-def configure(conf):
- conf.check_tool('compiler_cxx')
- conf.check_tool('node_addon')
-
-def build(bld):
- obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
- obj.target = 'node-proxy'
+srcdir = '.'
+blddir = 'build'
+VERSION = '0.1'
+
+def set_options(opt):
+ opt.tool_options('compiler_cxx')
+
+def configure(conf):
+ conf.check_tool('compiler_cxx')
+ conf.check_tool('node_addon')
+
+def build(bld):
+ obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
+ obj.target = 'node-proxy'
obj.source = 'node-proxy.cc'

0 comments on commit e11a8c5

Please sign in to comment.