Home / Vulnerability Database / TypeScript : Incorrect usage of global object
TypeScript
TypeScript : Incorrect usage of global object
Overview
ECMAScript provides several global objects. Some of these objects look like constructors, but in fact they are not.Some of these objects look as if they could be constructors due their capitalization (such as Math and JSON) but will throw an error if you try to execute them as functions.
In ECMAScript 5.1, Object.create was added, which enables the creation of objects with a specified [[Prototype]]. Object.create(null) provides a number of methods for working with these prototypes.
If global objects directly use methods from Object.prototype, this can lead to errors.
The following methods are the most dangerous in this case:
hasOwnPropertyisPrototypeOfpropertyIsEnumerable
LOW
DerScanner Severity Score
Do you want to fix TypeScript : Incorrect usage of global object in your application?
See also
TypeScript
TypeScript : Unsafe Azure access control
TypeScript
TypeScript : Debug code
TypeScript
