var test = require('tape')
var error = require('../')

test('message', function(t) {
  t.plan(3)
  var MyError = error('MyError')
  t.equals(MyError().name, 'MyError', 'name should be correct')
  t.equals(MyError('rawr').message, 'rawr', 'message should be correct')

  t.equals(MyError('meh').stack.split('\n')[0], 'MyError: meh', 'stack should contain name and message')
})

@@ -268,30 +268,78 @@
 %0A  t
-.equals(MyError('meh')
+ry %7B%0A    throw new MyError('meh')%0A  %7D%0A  catch (err) %7B%0A    t.equals(err
 .sta
@@ -414,11 +414,15 @@
 ssage')%0A
+  %7D%0A
 %7D)%0A

Throw the error so IE sets the stack property