Ensure compatibility with d8
Merge pull request #9 from BenjBouv/v8-compat

Ensure compatibility with d8