Add assertion for method calling

Ref https://github.com/tc39/test262/pull/2150#discussion_r285706248
This commit is contained in:
Leo Balter 2019-05-22 13:49:02 -04:00
parent 72945e0412
commit 5872c81e29

View File

@ -39,3 +39,6 @@ assert.sameValue(c.method(), 'outer class');
assert.throws(TypeError, function() {
innerB.method(c);
}, 'accessed inner class getter from an object of outer class');
assert.throws(TypeError, function() {
C.prototype.method.call(innerB);
});