File indexing completed on 2024-04-28 15:28:37
0001 // Error constructor called as a function 0002 shouldBe("Error('msg').message", "'msg'"); 0003 0004 // Error Constructor called as part of a new expression 0005 shouldBe("(new Error('msg')).message", "'msg'"); 0006 // moved to evil-n.js shouldBeUndefined("(new Error()).message"); 0007 shouldBe("(new Error('msg')).name", "'Error'"); 0008 0009 shouldBe("Object.prototype.toString.apply(Error())", "'[object Error]'"); 0010 shouldBe("Object.prototype.toString.apply(Error)", "'[object Function]'"); 0011 shouldBe("Object.prototype.toString.apply(EvalError)", "'[object Function]'");