Files
Huáng JùnliàngandGitHub ce5a104bae Bump babel deps (#15187)
* bump "@babel/*" deps

* bump core-js

* bump @babel/core

* update eslint-plugin-jest and glob

* update Makefile.js

* fix linting errors

* remove obsolete snapshots

* use inline snapshot
2022-11-12 11:53:45 -05:00

25 lines
372 B
JavaScript

"use strict";
class Base {
set test(v) {
throw new Error("gobbledygook");
}
}
class Obj extends Base {
call() {
return super.test();
}
test() {
throw new Error("gobbledygook");
}
}
const obj = new Obj();
expect(() => {
obj.call();
// Assert that this throws, but that it's not
// a gobbledygook error that is thrown
}).toThrow(TypeError)