版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 line
343 B

  1. let _snapshotEnvironment;
  2. function setupSnapshotEnvironment(environment) {
  3. _snapshotEnvironment = environment;
  4. }
  5. function getSnapshotEnvironment() {
  6. if (!_snapshotEnvironment)
  7. throw new Error("Snapshot environment is not setup");
  8. return _snapshotEnvironment;
  9. }
  10. export { getSnapshotEnvironment as g, setupSnapshotEnvironment as s };