1
0
Fork 0
mirror of https://github.com/rubyjs/mini_racer synced 2023-03-27 23:21:28 -04:00
mini_racer/examples/source-map-support/error-causing-component.jsx
Ian Ker-Seymer 723958f4da Add example of using source-map-support (#130)
* Add example of using source-map-support

* Address PR comments
2019-03-12 16:03:08 +11:00

9 lines
190 B
JavaScript

function throwSomeError() {
throw new Error(
"^^ Look! These stack traces map to the actual source code :)"
);
}
export const ErrorCausingComponent = () => {
throwSomeError();
};