Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite08ad85

Browse files
zenflowsindresorhus
authored andcommitted
Work around some host environments throwing onmimicFn call (#26)
Fixes#25
1 parentbdfc93a commite08ad85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎index.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ module.exports = (fn, options) => {
6666
returnret;
6767
};
6868

69-
mimicFn(memoized,fn);
69+
try{
70+
// The below call will throw in some host environments
71+
// See https://github.com/sindresorhus/mimic-fn/issues/10
72+
mimicFn(memoized,fn);
73+
}catch(_){}
7074

7175
cacheStore.set(memoized,options.cache);
7276

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp