HE Shi-Jun

Results 543 comments of HE Shi-Jun

@ljharb Yes `f.call()` has an `undefined` receiver but I think `f.call`, `f.apply` or `f.bind` are some degree reflection APIs like `Reflect.apply(f, undefined)`, programmers only use them for specific reasons, most...

> I find call/apply/bind use cases much more critical to support than any of the edge cases listed in the readme. @ljharb What edge cases? There is no section named...

> the programmer has explicitly said that they _don't_ want an undefined receiver to throw. So ```js function f1(this) {} function f2(this = foo) {} f1() // throw f2() //...

If never trigger, we'd better forbid it in syntax layer? Since you can't write ```js function f(x = foo) { 'use strict' //

> Sloppy functions can’t ever see undefined/null as the receiver, so i wouldn’t expect that to change @ljharb I ask the question because there are two possible ways for `function...

FYI, [C# ban the default value for `this` parameter](https://stackoverflow.com/questions/16892675/default-value-for-this-parameter-in-c-sharp-extension-methods) Currently, TS also do not support default value for `this` parameter. (Java don't support default value for all parameters at all.)

5MB确实太小随便就干爆了。得上idb或者opfs。

@cllemon 异常该怎么处理就怎么处理。在catch内部署异常监控(catch之后log然后rethrow)是不必要的,因为你可以用onerror、onunhandledrejection 之类的来统一处理。唯一的例外是老ie/edge不支持跨源脚本onerror时不得已为之。

> 字节还是位元? 不太确定,因为我只是听到一下。道理上说似乎应该是8个bits?我改了下原文。

关于 jQuery.isNumeric: `jQuery.isNumeric()` 已经被 deprecated,在未来的jQuery 4.0里会被删除。 历史上的实现变迁: 2011-11-03 jQuery 1.7.0 ```js rdigit = /\d/, isNumeric: function( obj ) { return obj != null && rdigit.test( obj ) && !isNaN( obj...