loopback/browser/current-context.js

18 lines
491 B
JavaScript
Raw Normal View History

2016-05-04 00:10:46 +00:00
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
// Node module: loopback
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
2016-06-07 14:48:28 +00:00
var g = require('strong-globalize')();
module.exports = function(loopback) {
loopback.getCurrentContext = function() {
return null;
};
loopback.runInContext =
loopback.createContext = function() {
2016-06-07 14:48:28 +00:00
throw new Error(g.f('Current context is not supported in the browser.'));
};
};