mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Add assertion for method calling
Ref https://github.com/tc39/test262/pull/2150#discussion_r285706248
This commit is contained in:
parent
72945e0412
commit
5872c81e29
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user