loopback-context/browser/current-context.js

18 lines
469 B
JavaScript

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