You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MERGE #6127@boingoing] OS#18260560 - ASSERTION : scope at GetEnclosingFunc
Merge pull request #6127 from boingoing:bug_OS18260560
Named function expression with nested-function declared in default arguments containing a with statement referencing the parent function expression by name results in a null dereference of the enclosing scope.
```javascript
(function foo(a = function bar() {
with ({}) {
foo;
}
}()) {})();
```
We try and look at the param scope and body scope but we don't check the function expression scope in `ByteCodeGenerator::CheckDeferParseHasMaybeEscapedNestedFunc`. Simple fix is to check function expression scope if param and body scope are nullptr.
Fixes:
https://microsoft.visualstudio.com/OS/_workitems/edit/18260560
Found vis oss-fuzz
0 commit comments