Open serapath opened 7 years ago
wzrd.in runs on an old version of node. If the demo-ca library depends on es6 features, this would probably be why you're seeing this.
I'm open to upgrading (probably about time). @maxogden thoughts there?
It's basically about:
// function demoCA ({ // NOT SUPPORTED YET
// theme : { color : color = '#00ffff' } = {},
// data : { name : name = 'anonymous' } = {}
// } = {}) {
function demoCA (params) {
var color = ((params||{}).theme||{}).color || '#00ffff'
var name = ((params||{}).data ||{}).name || 'anonymous'
... switching the former for the latter made things work.
I was trying to execute
in requirebin.com and it seems that might be related to
wzrd.in
?