michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: 'use strict'; michael@0: michael@0: try { michael@0: require('./not-found'); michael@0: } michael@0: catch (e1) { michael@0: exports.firstError = e1; michael@0: // It should throw again and not be cached michael@0: try { michael@0: require('./not-found'); michael@0: } michael@0: catch (e2) { michael@0: exports.secondError = e2; michael@0: } michael@0: } michael@0: michael@0: try { michael@0: require('./file.json'); michael@0: } michael@0: catch (e) { michael@0: exports.invalidJSON1 = e; michael@0: try { michael@0: require('./file.json'); michael@0: } michael@0: catch (e) { michael@0: exports.invalidJSON2 = e; michael@0: } michael@0: }