Skip to content

Commit bef9a70

Browse files
committed
Define JS usage.
1 parent 56bf93d commit bef9a70

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

scripts/lib/ExtensionsValidatorExceptions.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ const extensionsAllowedProperties = {
117117
'getOwnPropertyDescriptor',
118118
'defineProperties',
119119
'prototype',
120+
// This is for UMD extends emulation.
121+
'setPrototypeOf',
120122
],
121123
},
122124
/** @type {Record<string, ExtensionAllowedProperties>}} */
@@ -347,7 +349,6 @@ const extensionsAllowedProperties = {
347349
javaScriptObjectAllowedProperties: [
348350
'prototype',
349351
'getPrototypeOf',
350-
'setPrototypeOf',
351352
'getOwnPropertySymbols',
352353
'getOwnPropertyDescriptor',
353354
'getOwnPropertyDescriptors',
@@ -357,8 +358,7 @@ const extensionsAllowedProperties = {
357358
gdjsAllowedProperties: ['__NavMeshPathfinding'],
358359
gdjsEvtToolsAllowedProperties: [],
359360
runtimeSceneAllowedProperties: [],
360-
// This is for UMD extends emulation.
361-
javaScriptObjectAllowedProperties: ['setPrototypeOf'],
361+
javaScriptObjectAllowedProperties: [],
362362
},
363363
Noise: {
364364
gdjsAllowedProperties: ['_extensionNoise', 'randomInRange'],
@@ -542,6 +542,15 @@ const extensionsAllowedProperties = {
542542
runtimeSceneAllowedProperties: [],
543543
javaScriptObjectAllowedProperties: [],
544544
},
545+
ThirdPersonCamera: {
546+
gdjsAllowedProperties: [
547+
'__thirdPersonCameraExtension',
548+
'RuntimeObject3D',
549+
],
550+
gdjsEvtToolsAllowedProperties: [],
551+
runtimeSceneAllowedProperties: [],
552+
javaScriptObjectAllowedProperties: [],
553+
},
545554
TiledUnitsBar: {
546555
gdjsAllowedProperties: [
547556
'_TiledUnitsBarExtension',
@@ -619,7 +628,7 @@ const extensionsAllowedProperties = {
619628
gdjsAllowedProperties: ['_playgamaBridgeExtension'],
620629
gdjsEvtToolsAllowedProperties: [],
621630
runtimeSceneAllowedProperties: [],
622-
javaScriptObjectAllowedProperties: ['setPrototypeOf'],
631+
javaScriptObjectAllowedProperties: [],
623632
},
624633
Sky3D: {
625634
gdjsAllowedProperties: ['__Sky3DExtension'],

0 commit comments

Comments
 (0)