musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

Major: Don't include 'state' key on result object unless requested #74

Closed iccir closed 8 years ago

iccir commented 8 years ago

Right now, state is always included on the result object in the Node API. However, not all clients may want or need the state object. Since there is a performance cost to creating it, let's make it (and other future keys) opt-in via an include-state option.

iccir commented 8 years ago

On 2.0 branch