var Reflect = require('harmony-reflect')
var Foo = class{}
Reflect.construct(Foo, [])
This throws the following error:
TypeError: Class constructors cannot be invoked without 'new'
at new <anonymous> (path/to/harmony-reflect/test/testReflect.js:313:19)
at Object.global.Reflect.construct (path/to/harmony-reflect/reflect.js:1976:43)
at path/to/harmony-reflect/test/testReflect.js:325:29
at test (path/to/harmony-reflect/test/testReflect.js:328:4)
at Object.<anonymous> (path/to/code/harmony-reflect/test/testReflect.js:333:3)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
This throws the following error: