Fix ESLint errors, bugs, and add gravity export
- Fix missing return in childRegistrationUtils.registerChild() - Fix assertionUtils: assertNoNaN uses this.assertNoNaN - Fix logger: nameModule uses this.nameModule - Fix assetUtils: convert ESM to CommonJS - Fix childRegistrationUtils_DEPRECATED: desc -> softwareType - Add gravity export to index.js for rotatingMachine - Fix ESLint errors across 18 files (no-undef, no-case-declarations, no-mixed-spaces-and-tabs, parsing errors) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -21,12 +21,12 @@ var nativeCreate = reNative.test(nativeCreate = Object.create) && nativeCreate;
|
||||
* @param {Object} prototype The object to inherit from.
|
||||
* @returns {Object} Returns the new object.
|
||||
*/
|
||||
function baseCreate(prototype, properties) {
|
||||
function baseCreate(prototype, properties) { // eslint-disable-line no-func-assign
|
||||
return isObject(prototype) ? nativeCreate(prototype) : {};
|
||||
}
|
||||
// fallback for browsers without `Object.create`
|
||||
if (!nativeCreate) {
|
||||
baseCreate = (function() {
|
||||
baseCreate = (function() { // eslint-disable-line no-func-assign
|
||||
function Object() {}
|
||||
return function(prototype) {
|
||||
if (isObject(prototype)) {
|
||||
|
||||
Reference in New Issue
Block a user