blob: 04cdab049963d88904f4024c7bfcafdc67b9ee13 [file] [log] [blame]
// It's invalid to eval super.prop inside a nested non-method, even if it
// appears inside a method definition
assertThrowsInstanceOf(() =>
({
method() {
(function () {
eval('super.toString');
})();
}
}).method(), SyntaxError);
if (typeof reportCompare === 'function')
reportCompare(0,0,"OK");