小编Qua*_*oid的帖子

如何修复Github Travis CI构建中git子模块更新的权限被拒绝(公钥)错误?

我无法更新git子模块,错误如下:

$ git submodule init
Submodule 'build/html' (git@github.com:quadroid/clonejs.git) registered for path 'build/html'
...
$ git submodule update
Cloning into 'build/html'...
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Run Code Online (Sandbox Code Playgroud)

但是当我在本地执行相同的任务时,一切都很好.

我如何解决这个问题,以便Travis CI构建通过,我仍然可以单击repo中的子模块来指向它?

git github git-submodules travis-ci

43
推荐指数
4
解决办法
1万
查看次数

如何从严格模式获得呼叫者?

可以混合严格和非严格的代码.但即使对它的调用不是严格的代码,你也不能使用调用者.有人知道任何解决方法吗?

我试过这个:

(function strict(){
    "use strict";
    nonStrict();//ok
    nonStrictCaller();//error :(
})();

function nonStrict(){
    return 011;//Octal literals are not allowed in strict mode
}

function nonStrictCaller(){
    return nonStrictCaller.caller;
}
Run Code Online (Sandbox Code Playgroud)

javascript strict-mode

22
推荐指数
1
解决办法
1万
查看次数