Open vpulim opened 13 years ago
Wow, that's a crazy one. Ok, I'll comment out the freeze.
Wait, this looks like it is already commented out: https://github.com/kriszyp/node-promise/blob/master/promise.js#L56 Am I missing something?
oops, sorry, i think we were using an older version of the code. my apologies...
FYI, version 0.3.0 and above of Node uses a version of v8 that fixes that bug. I tested the latest commit of node-promise with node 0.3.4 and un-commented line 56 and it seems to be working fine.
Due to a bug in v8, calling Object.freeze corrupts the global null object. More info: http://groups.google.com/group/nodejs/browse_thread/thread/e205dabc5fcb773e/f578d85ba5da478c