indutny/candor — Issue #4: Leaking argc value
Author: creationix
Created: 2012-03-08 22:28:50+00:00
State: open

When you nest function calls for native functions, the outer argc value leaks into the inner one.

```candor
scope print, typeof, sizeof

value = "Hello World!"
type = typeof(value)
size = sizeof(value)

// This works
print(type, size, value)

// This doesn't. It fails with:
// canio: src/main.cc:78: candor::Value* Typeof(uint32_t, candor::Arguments&): Assertion `argc == 1' failed.
// Because `argc` is 3 within `typeof` when it should be 1
print(typeof(value), sizeof(value), value)
```