mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* 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
22 lines
313 B
JavaScript
22 lines
313 B
JavaScript
"use strict";
|
|
class Base {
|
|
}
|
|
|
|
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
|
|
// Obj.p.test's error that is thrown
|
|
}).toThrow(TypeError)
|