Claude Pache
Claude Pache
Not to be confused with Function#caller. See : - [MDN reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/caller). In theory, arguments.caller is only available in sloppy-mode functions with simple arguments list (poison-pilled otherwise). In practice, removed from...
Since ES5, it is required that, for a given regexp `rx`, parsing the string `"/" + rx.source + "/" + flags` must produce a functionally equivalent regexp as `rx`. See...
Early test coverage for the stage 1 [Legacy reflection features for functions in JavaScript](https://github.com/claudepache/es-legacy-function-reflection) proposal (standardisation of Function.prototype.arguments and Function.prototype.caller) in its current state. Moreover, there are some existing tests...
The following pairs of columns display the same results: - "SF 6.1, SF 7" and "iOS 7"; - "SF 7.1, SF 8" and "iOS 8"; - "SF 9.0" and (not...
Freezing the returned object seems useless to me, since a new object is returned with each invocation.
In the block at the beginning ("This is not the official ..."), there is a link to the pdf version to the official ECMAScript Language Specification, Edition 5.1 (http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf) It...
### Bug report I encountered a strange spurious PHPStan error in the following setting: ```php // Any non-global namespace block ... namespace foo { // ... } // ... followed...
### Bug report ```php /** * @phpstan-impure
### Bug report While exploring how good is PHPStan in reporting incorrect uses of `break` statements, I stumbled on what is perhaps the shortest way to break the analysis: ```php
list<non-empty-array> incorrectly widened into list<array> in some cases after a foreach-by-ref loop
### Bug report Since 2.1.32. See attached snippet. ### Code snippet that reproduces the problem https://phpstan.org/r/f6286581-ad03-4fff-b51e-ee31c0c56071 ### Expected output On line 21: `Dumped type: list` ### Did PHPStan help you...