loopback-context/browser/current-context.js

18 lines
473 B
JavaScript
Raw Normal View History

2016-07-28 13:40:19 +00:00
// Copyright IBM Corp. 2015. All Rights Reserved.
// Node module: loopback-context-cls
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'use strict';
var LoopBackContext = module.exports;
2016-07-28 13:40:19 +00:00
LoopBackContext.getCurrentContext = function() {
2016-07-28 13:40:19 +00:00
return null;
};
LoopBackContext.runInContext =
LoopBackContext.createContext = function() {
2016-07-28 13:40:19 +00:00
throw new Error('Current context is not supported in the browser.');
};