Add JS-CATCH-FALLBACK-01 rule and update npm packages

Add PHP-ALIAS-01 rule: prohibit field aliasing in serialization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-23 07:36:18 +00:00
parent 3cc590186a
commit 3ce82a924a
1256 changed files with 6491 additions and 3989 deletions

View File

@@ -6,13 +6,13 @@
"use strict";
/** @typedef {import("../Module").BuildMeta} BuildMeta */
/** @typedef {import("../Parser").ParserState} ParserState */
/** @typedef {import("../javascript/JavascriptParser").JavascriptParserState} JavascriptParserState */
/** @type {WeakMap<ParserState, boolean>} */
/** @type {WeakMap<JavascriptParserState, boolean>} */
const parserStateExportsState = new WeakMap();
/**
* @param {ParserState} parserState parser state
* @param {JavascriptParserState} parserState parser state
* @returns {void}
*/
module.exports.bailout = (parserState) => {
@@ -26,7 +26,7 @@ module.exports.bailout = (parserState) => {
};
/**
* @param {ParserState} parserState parser state
* @param {JavascriptParserState} parserState parser state
* @returns {void}
*/
module.exports.enable = (parserState) => {
@@ -41,7 +41,7 @@ module.exports.enable = (parserState) => {
};
/**
* @param {ParserState} parserState parser state
* @param {JavascriptParserState} parserState parser state
* @returns {boolean} true, when enabled
*/
module.exports.isEnabled = (parserState) => {
@@ -50,7 +50,7 @@ module.exports.isEnabled = (parserState) => {
};
/**
* @param {ParserState} parserState parser state
* @param {JavascriptParserState} parserState parser state
* @returns {void}
*/
module.exports.setDynamic = (parserState) => {
@@ -61,7 +61,7 @@ module.exports.setDynamic = (parserState) => {
};
/**
* @param {ParserState} parserState parser state
* @param {JavascriptParserState} parserState parser state
* @returns {void}
*/
module.exports.setFlagged = (parserState) => {