Files
meteor/tools/tests/apps/app-throws-error/throw.js
David Glasser 61d4be9940 fix source map test for better world
"app/" in stack traces was an artifact of how we lay out files in the
built server, not how the source files are laid out, and isn't actually
as good as just using the source file name.  Slava improved this on this
branch by just using the real file name. So the test (newly merged from
devel) needs to be improved to match.

While we're at it, let's test for filenames in a package.
2015-06-27 00:00:24 -07:00

6 lines
138 B
JavaScript

if (Meteor.isServer) {
process.env.THROW_FROM_PACKAGE || Meteor.startup(function () {
throw new Error("Should be line 3!");
});
}