Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Strict mode #95

Open
Joris-van-der-Wel opened this issue Jun 11, 2015 · 3 comments
Open

Strict mode #95

Joris-van-der-Wel opened this issue Jun 11, 2015 · 3 comments

Comments

@Joris-van-der-Wel
Copy link
Contributor

I would like to use strict mode in my benchmark functions. (E.g. so that I can use let).

The "use strict"; statement must be the first statement of a function. I can not activate strict mode because of the compilation performed by this library (unless I use closures or move everything to an external function).

Would it be a good idea to add a Benchmark option for strict mode?

@jdalton
Copy link
Member

jdalton commented Jun 11, 2015

You could aways test functions that are in strict mode.

@Joris-van-der-Wel
Copy link
Contributor Author

Yes, that is already happening ;).

My intention is to be consistent with the rest of the code base. (strict mode everywhere, no more var, etc). Not a high priority feature, but it would be nice to have (I'm willing to whip up a PR).

@jdalton
Copy link
Member

jdalton commented Jun 11, 2015

I can dig it. PR's away!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants