tvcutsem / harmony-reflect

ES5 shim for ES6 Reflect and Proxy objects
http://www.ecma-international.org/ecma-262/6.0/#sec-reflection
Other
478 stars 48 forks source link

Fix #16: don't pass primitives to WeakMap.get #17

Closed metamatt closed 11 years ago

metamatt commented 11 years ago

Check that an argument refers to an object, not a primitive, before invoking WeakMap.get().

Fixes #16.

Tests run (and passed) under node v0.10 with --harmony: test/testHandlers.js test/testReflect.js test/testRegression.js