Don't allow fibers as map keys.

I hacked in support for it for a misguided reason (trying to fake
"thread-local storage") and ended up not using it for that anyway.
This commit is contained in:
Bob Nystrom
2015-12-15 10:42:21 -08:00
parent 8d9feb4bc9
commit 873926915f
9 changed files with 9 additions and 24 deletions

View File

@ -242,10 +242,6 @@ typedef struct sObjFiber
// error object. Otherwise, it will be null.
Value error;
// A unique-ish numeric ID for the fiber. Lets fibers be used as map keys.
// Unique-ish since IDs may overflow and wrap around.
uint16_t id;
// This will be true if the caller that called this fiber did so using "try".
// In that case, if this fiber fails with an error, the error will be given
// to the caller.